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

Item rarity color / colour overrides first text component's colour in the held tooltip (item switching)

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Fixed
    • Minecraft 1.13-pre7
    • Minecraft 1.13-pre2, Minecraft 1.13-pre3, Minecraft 1.13-pre4, Minecraft 1.13-pre5
    • None
    • Confirmed

      This seems to be related to MC-5206 although italics seem to work.

      This appears to be happening because the item rarity colour replaces the colour of the first text component.

      Reproduce:

      Run the command:

      /give @s dirt{display:{Name:"{\"text\":\"Test\",\"color\":\"red\"}"}}
      

      And look at the tooltip in the inventory, then look at the item when you switch to the slot in the hotbar.

      Comparing this to spawning in a dragon egg with the same command:

      /give @s dragon_egg{display:{Name:"{\"text\":\"Test\",\"color\":\"red\"}"}}

      You can see that the colour has been overridden by the rarity colour.

        1. color1.png
          color1.png
          20 kB
        2. color2.png
          color2.png
          20 kB
        3. Screenshot_2.png
          Screenshot_2.png
          8 kB
        4. Screenshot_5.png
          Screenshot_5.png
          6 kB

            cojomax99 [Mojang] Cory Scheviak
            Jayceebee Synthestra
            Votes:
            13 Vote for this issue
            Watchers:
            6 Start watching this issue

              Created:
              Updated:
              Resolved:
              CHK: