mojira.dev
MC-233258

team displayName/prefix/suffix only accept specific json components

The following json components work correctly (the same as tellraw/title)

/team modify Name prefix {"text":"text"}
/team modify Name prefix {"translate":"translation key"}
/team modify Name prefix {"keybind":"keybind"}

Scoreboard json doesn't output anything

/team modify Name prefix {"score":{"objective":"scoreboard name","name":"player/entity"}}

NBT json doesn't output anything

/team modify Name prefix {"nbt":"NBT Path","entity/block/storage":"entity/block/storage name/pos"}

Selector json outputs texts instead of a player/entity

/team modify Name prefix {"selector":"selector"}

Examples:

Scoreboard json component:

{"score":{"objective":"test","name":"@s"}}
[media]

Selector json component:

{"selector":"@s"}
[media]

NBT json component:

{"nbt":"SelectedItem","entity":"@s"}
[media]

MC-158726 does mention some of this but only NBT json not functioning

Linked issues

Attachments

Comments 4

duplicate of MC-131328

so not only team displayName/prefix/suffix don't accept these json components. In most cases, these json components are not accepted.

This is work as intended. 👎 

Game needs to parse the score, nbt, etc. in the json components before render. But in team prefix/suffix, or CustomName, the game will not parse those parts.

If your number is small, you can use enumeration for prefix/suffix. See wiki for more information.

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

That ticket has already been resolved as working as intended, which means this is not considered a bug and won't be fixed. Please do not leave a comment on the linked ticket.

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
📓 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.

Storage bug still here in 1.19.3

/data modify storage test:storage1 some.data set value MyTeam1
/team add Team1
/team modify Team1 prefix [{"storage":"test:storage1","nbt":"some.data","color":"green"},{"text":" "}]
[media][media]

max widmiaer

(Unassigned)

Unconfirmed

(Unassigned)

1.17.1

Retrieved