mojira.dev
MC-278055

Storage text component does not work on item name and lore

When using storage as text component for custom_name, item_name or lore of an item, it will show nothing.

 

For example:

/data modify storage test test set value 123

/tellraw @s {"storage":"test","nbt":"test"}

/give @s diamond[custom_name='{"storage":"test","nbt":"test"}']

 

The second command will output 123 in chat, but the third one will give you a diamond with an empty string, where in theory you should get a diamond with custom name "123".

Linked issues

Comments 2

MC-131328, not a bug; any text component that needs resolving is only functional is certain places. Signs, tellraw/title, written books, boss bars, text display entities, and item modifiers, that's it.

For further info, see https://minecraft.wiki/w/Raw%20JSON%20text%20format#Component_resolution

Thank you for your report!
We're tracking this issue in MC-131328, so this ticket is being resolved and linked as a duplicate.

If you would like to add a vote and any extra information to the main ticket it would be appreciated.

If you haven't already, you might like to make use of the search feature to see if the issue has already been mentioned.

Quick Links:
📓 Bug Tracker Guidelines – 💬 Community Support – 📧 Mojang Support (Technical Issues) – 📧 Microsoft Support (Account Issues)
📓 Project Summary – ✍️ Feedback and Suggestions – 📖 Game Wiki
-- I am a bot. This action was performed automatically! The ticket was resolved by one of our moderators, and I left this message to give more information to you.

akastrmix

(Unassigned)

Unconfirmed

(Unassigned)

1.21.3

Retrieved