Skip to content

Text Component

Frinn38 edited this page Apr 28, 2022 · 2 revisions

Text Components are used to display strings to the player, with more formatting options than a default string (color, bold, etc...)

Custom Machinery use these components in various places such as the machine name or tooltips properties.

A full doc of how to make text components using json can be found on the Minecraft wiki. (be sure to follow the "Java Edition" part.

Quick list of available properties :

  • text (The text to display)
  • bold (true/false)
  • italic (true/false)
  • underlined (true/false)
  • striketrough (true/false)
  • obfuscated (true/false)
  • color ("colorID" or "#RRGGBB" hex format)
  • font (custom font id, minecraft only provide "minecraft:default")
  • children Not supported !
Clone this wiki locally