mojira.dev
MC-130968

Selector, score and nbt components don’t work in team prefix and suffix

I let myself, two entities (I used villagers, one was renamed,) and a virtual name have an objective "test" and join in the same team "test."

Then I executed the commands below:

/team option test prefix ["Hello",{"text":", ","color":"gold"}]
/team option test suffix [" ",{"selector":"@p","italic":"true"},{"score":{"name":"Virtual_Name","objective":"test"}}]

After that, "score" tags didn't work at all, and "selector" tags did as "text" tags.

 

 

By the way, this bug does on a item name.

Linked issues

Attachments

Comments 5

This bug is not solved.

Can confirm for Minecraft 1.17.1

What about 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":" "}]

Resolution: Works As Intended

FlesyZ

(Unassigned)

Confirmed

/team, JSON, prefix, suffix

Minecraft 1.13-pre1, 1.16.3, 1.16.5, 21w17a, 1.17.1

Retrieved