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

Shulker box preview count affected by item display name styling

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Unresolved
    • None
    • Minecraft 1.12.2, Minecraft 18w19b, Minecraft 18w22c, Minecraft 18w32a, Minecraft 1.13.1, 1.14.4, 1.15.2, 20w06a, 20w51a, 21w03a, 1.16.5, 21w05b, 21w06a, 21w08b, 1.17.1, 1.18.1, 1.18.2, 22w16b, 1.19, 1.19.2, 1.19.3, 1.20.1
    • Confirmed
    • Text

      The bug

      When hovering over a non-empty shulker box item you get a preview of the items contained and the stacks sizes. This number shares the styling of the items name. I expected this number to always be styled the same. 

      This is problematic, because you can not preview the size of item stacks with obfuscated names.

      How to reproduce

      1. Run in a command block:
        /setblock ~ ~ ~ shulker_box{Items:[{Slot:0b,id:"minecraft:stone",tag:{display:{Name:"{\"text\":\"Bold\",\"bold\":\"true\",\"color\":\"red\"}"}},Count:1b},{Slot:1b,id:"minecraft:stone",tag:{display:{Name:"{\"text\":\"obfuscated\",\"obfuscated\":\"true\"}"}},Count:1b}]}
        
      2. Pick up the shulker box
      3. Open inventory and hover over the shulker box item

            Unassigned Unassigned
            Selebrator Selebrator
            Votes:
            4 Vote for this issue
            Watchers:
            2 Start watching this issue

              Created:
              Updated:
              CHK: