Uploaded image for project: 'Minecraft: Java Edition'
  1. Minecraft: Java Edition
  2. MC-124543

JSON-Text formatting in CustomNames of container blocks does not work

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Fixed
    • Minecraft 18w30a
    • Minecraft 18w03b, Minecraft 18w06a, Minecraft 18w08a, Minecraft 18w08b, Minecraft 18w10a, Minecraft 18w11a, Minecraft 18w19b, Minecraft 18w20a, Minecraft 18w20c, Minecraft 18w22a, Minecraft 1.13-pre1, Minecraft 1.13-pre3, Minecraft 1.13-pre6, Minecraft 1.13-pre7, Minecraft 1.13-pre9, Minecraft 1.13
    • Confirmed

      I don't know if that may be intended due to technical limitations, but the json format tags do not appear to do anything when used in CustomNames of container blocks.

      These commands do not give the desired format:

      setblock ~ ~ ~ minecraft:chest{CustomName:"{\"text\":\"Hellou\",\"strikethrough\":true}"}
      setblock ~ ~ ~ minecraft:chest{CustomName:"{\"text\":\"Hellou\",\"color\":\"red\"}"}

      While these do:

      summon minecraft:creeper ~ ~ ~ {CustomName:"{\"text\":\"Hellou\",\"strikethrough\":true}"}
      summon minecraft:creeper ~ ~ ~ {CustomName:"{\"text\":\"Hellou\",\"color\":\"red\"}"}
      give @p minecraft:stone{display:{Name:"{\"text\":\"Hellou\",\"strikethrough\":true}"}}
      give @p minecraft:stone{display:{Name:"{\"text\":\"Hellou\",\"color\":\"red\"}"}}

      Note that the legacy ยง formatting displays as expected

        1. screenshot-4.png
          screenshot-4.png
          6 kB
        2. screenshot-3.png
          screenshot-3.png
          6 kB
        3. screenshot-2.png
          screenshot-2.png
          11 kB
        4. screenshot-1.png
          screenshot-1.png
          4 kB
        5. 2018-01-24_18.47.35.png
          2018-01-24_18.47.35.png
          754 kB

            boq [Mojang] Bartosz Bok
            Schortan [Mod] NeunEinser
            Votes:
            7 Vote for this issue
            Watchers:
            6 Start watching this issue

              Created:
              Updated:
              Resolved:
              CHK: