Mojira Archive
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.

Duplicate

Kevin Xia

2019-08-10, 10:04 AM

2022-12-17, 02:41 AM

2022-12-17, 02:36 AM

3

5

Confirmed

Commands

command

1.14.4, 1.15 Pre-release 6

-