mojira.dev
MC-158726

team prefix/suffix/displayName does not support mob's string data

If you throw an item with lore, team modify XXX prefix/suffix/displayName doesn't work with commands that works with tellraw.

For example, you summon an item with command

/summon item ~2 ~ ~ {Item:{id:"minecraft:stone",Count:1b,tag:{display:{Lore:["{\"text\":\"something\"}"]}}}}

This is a stone with lore "something".

If you run command

/tellraw @a [{"nbt":"Item.tag.display.Lore[0]","entity":"@e[type=item,limit=1]","interpret":"true"}]

it will show the first line in item's lore, which is "something".

However, if you run command

/team modify XXX prefixΒ [{"nbt":"Item.tag.display.Lore[0]","entity":"@e[type=item,limit=1]","interpret":"true"}]

it will show nothing in front of the team prefix. It also doesn't work with suffix/displayName.

Linked issues

Comments 2

"Without using external editors, the only possible prefixes are formatting codes for team colors, and the only possible suffix is the reset code (so characters after a team member's name aren't formatted)."
This line was added to the wiki's Scoreboard article on January 31, 2013. Take it as you will.

Thank you for your report!
We're tracking this issue in MC-130968, 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
πŸ““ 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.

Kevin Xia

(Unassigned)

Confirmed

Commands

command

1.14.4, 1.15 Pre-release 6

Retrieved