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

Details

    • Bug
    • Status: Open
    • Resolution: Unresolved
    • 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
    • None
    • Confirmed
    • Text

    Description

      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

      Attachments

        1. image-2018-05-14-01-23-33-176.png
          13 kB
          Selebrator
        2. MC-129565.mp4
          2.74 MB
          Avoma

        Activity

          People

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

            Dates

              Created:
              Updated:
              CHK: