mojira.dev
MC-129565

Shulker box preview count affected by item display name styling

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

    [media]

Linked issues

Attachments

Comments 14

Can confirm in 20w51a.

Can confirm in 21w03a.

Can confirm in 21w05b.

Can confirm in 21w06a.

4 more comments

Can confirm in 1.19.

Can confirm in 1.19.2.

Cannot reproduce in 1.20.5 release candidate 1, same goes for 1.20.4.

This seems to have been fixed in 23w40a:

[media]

The reported behavior was fixed in 1.20.2 Pre-Release 1, alongside MC-248778.

Selebrator

(Unassigned)

Confirmed

Text

shulker_box

Minecraft 1.12.2, Minecraft 18w19b, Minecraft 18w22c, Minecraft 18w32a, Minecraft 1.13.1, ..., 22w16b, 1.19, 1.19.2, 1.19.3, 1.20.1

Retrieved