Customize text.
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.
The Minecraft wikiarrow-up-right have a full documentation of how to make text components using json. Be sure to follow the "Java edition" part.
text (The text to display)
text
bold (true/false)
bold
italic (true/false)
italic
underlined (true/false)
underlined
striketrough (true/false)
striketrough
obfuscated (true/false)
obfuscated
color ("colorID" or "#RRGGBB" hex format)
color
font (custom font id, minecraft only provide "minecraft:default")
font
children Not supported !
children
Display Hello ! in red and bold.
Hello !
{ "text": "Hello !", "bold": true, "color": "red" }
Last updated 2 years ago