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"}}
Selector json component:
{"selector":"@s"}
NBT json component:
{"nbt":"SelectedItem","entity":"@s"}
MC-158726 does mention some of this but only NBT json not functioning
Environment
jdk-16.0.1 Windows 10 latest
Created Issue:
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"}}Selector json component:
{"selector":"@s"}NBT json component:
{"nbt":"SelectedItem","entity":"@s"}MC-158726 does mention some of this but only NBT json not functioning
Environment
jdk-16.0.1 Windows 10 latest
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"}}Selector json component:
{"selector":"@s"}NBT json component:
{"nbt":"SelectedItem","entity":"@s"}
MC-158726does mention some of this but only NBT json not functioningThe 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"}}Selector json component:
{"selector":"@s"}NBT json component:
{"nbt":"SelectedItem","entity":"@s"}
MC-158726does mention some of this but only NBT json not functioning
duplicates








duplicate of
MC-131328so 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":" "}]