mojira.dev
MC-112744

Team NBT tag only exists for EntityLivingBase entities and not for all

The bug

The Team tag makes an entity directly join a team once its NBT data is read. As all entities can be in a team this tag should exist for all entities and not only for the ones extending EntityLivingBase.

How to reproduce

  1. Create a team

    /team add testTeam
  2. Summon the following entities

    /summon armor_stand ~ ~ ~ {Team:"testTeam"}
    /summon minecart ~ ~ ~ {Team:"testTeam"}
  3. Run the following command

    /team list testTeam

    → It only shows the armor stand

  4. Run the following command and repeat the previous step

    /team join testTeam @e[type=minecart,limit=1]

    → Now the minecart is listed as well

Linked issues

Comments 7

Confirmed for 18w30b

Confirmed for 18w31a

Confirmed for 18w32a

Confirmed for 18w33a

Confirmed for 1.13.1-pre1

Can confirm in 21w03a.

Can confirm in 21w05b.

marcono1234

(Unassigned)

Confirmed

(Unassigned)

entity, scoreboard-teams, team

Minecraft 1.11.2, Minecraft 1.12.1, Minecraft 1.12.2, Minecraft 1.13, Minecraft 18w30b, ..., 20w08a, 20w48a, 21w03a, 21w05b, 1.20.3

Retrieved