mojira.dev
MC-190703

Entity in JSON text is not colored in the team's color if the selector doesn't use team=

An entity's name isn't colored in its team's color in the chat if the entity selector does not use the team= argument. This did not happen in 1.15.2.

To reproduce

  1. /team add testTeam
  2. /team modify testTeam color red
  3. /team join testTeam @s
  4. /tellraw @a {"selector":"@e[team=testTeam]","color":"green"}

    → ✔ Your user name appears in red

  5. /tellraw @a {"selector":"@a","color":"green"}

    → ❌ Your user name appears in green

Linked issues

Attachments

Comments 6

I don't quite understand what the issue is here, could you elaborate? If possible, also include some steps to reproduce.

If an entity have a name color, because the enity is in a team, with a custom team color. And if you displayed the entity name in a tellraw message, than the name color will automaticily be replaced by the team color of the entity. That's not the case 1.16, instead of the other versions.

In this case the color of the entity in chat will be displayed in green:
tellraw @a {"selector":"@e[tag=Test]","color":"green"}
But if the entity is in a team with a custom team color, than the color green will be changed to the team color of the entity. But that's not the case in 1.16.

Ah, I see, thanks for the explanation.

Oddly enough this only works when you access the entities when not using @e[team=...].

Can confirm in 21w03a.

In 1.16, both tellraw messages are always green, unlike how it says in the reproduction steps.

As a workaround, you can use

[{"text":"","color":"green"},{"selector":"@a"}]

I can't reproduce this. If this is still an issue, please include an updated command that shows a different color only when team= is included

Jonathan

(Unassigned)

Confirmed

Normal

Commands, Rendering

rendering

1.16 Release Candidate 1, 1.16, 21w03a

Retrieved