Data component format/sign text common

Minecraft Wiki article. Categories: Data_component_format_subpages

📌 Mirrored from Minecraft Wiki

This article is reproduced from Data component format/sign text common on the Minecraft Wiki. Mirrored from revision 3724981. It is licensed CC BY-NC-SA 3.0 by the Minecraft Wiki contributors — not under the Codex’s CC BY-SA 4.0, and it may not be used commercially. Edits belong upstream, not here.

    • [NBT Compound / JSON Object] minecraft:sign_text_(front|back)
      • [NBT List / JSON Array] messages: A list of four text components, one for each line.
        • [String][NBT List / JSON Array][NBT Compound / JSON Object]: Text for each line. Must be a valid text component. The length limit when messages are typed out or displayed in-game depends on the width of the characters in the font you are using, with a hard limit of 50 characters when typing. However, this character limit is not enforced onto the text components, so they can be arbitrarily long (though they may not fully be displayed).
      • [NBT List / JSON Array] filtered_messages: Only in Realms. The lines of text shown to players with the profanity filter turned on instead of the regular lines. This tag is automatically set to "" for lines containing blocked words and to the line's normal contents for the other lines when a player with the profanity filter turned off edits the sign, so players with the filter on cannot see the blocked words. If a player with the filter on tries to use blocked words in one or more lines, the line(s) in [NBT List / JSON Array] messages containing blocked words are set to "", which makes them render completely blank, and this tag is also given the same contents. If multiple lines have been edited before the sign editing GUI is closed, only the lines containing blocked words are blanked.
      • [String] color: The color that has been used to dye the sign. The default value is black One of white, orange, magenta, light_blue, yellow, lime, pink, gray, light_gray, cyan, purple, blue, brown, green, red, and black.
      • [Boolean] has_glowing_text: Optional, defaults to false. true if the sign has been dyed with a glow ink sac.

Sources