Mojira Archive
MC-157196

Tamed animals cannot be added to a team

When attempting to set the team of a tamed animal it appears to succeed but in actuality the animal is not set to the team. Attempting to execute any command based on the team it does not include the animal in its selection.

To reproduce

by [Mod] j_p_smith

  1. Create two teams named wolfTeam and playerTeam:
    /team add wolfTeam
    /team add playerTeam
  2. Join the team playerTeam:
    /team join playerTeam @s
  3. Summon a wolf on the team wolfTeam:
    /summon wolf ~ ~ ~ {Team:wolfTeam}
  4. Tame the wolf:
    /data modify entity @e[type=wolf,limit=1,sort=nearest] Owner set from entity @s UUID
  5. Confirm the wolf is still on the team wolfTeam:
    /team list wolfTeam

    The wolf's UUID is displayed

  6. Try to select the wolf using the "team" target selector argument:
    /execute if entity @e[type=wolf,team=wolfTeam]

    No entities are found

  7. Try again, this time using the team playerTeam:
    /execute if entity @e[type=wolf,team=playerTeam]

    The wolf is found by the target selector

Fixed

Kai Cook

2019-07-20, 12:50 AM

2025-01-30, 10:01 AM

2025-01-30, 10:01 AM

11

3

Confirmed

Commands

1.14.4 - 24w37a1.14.4, 1.15.2, 20w18a, 1.16.1, 20w28a, 1.16.4, 20w51a, 21w03a, 21w06a, 1.18.1, 22w06a, 1.19, 1.20.4, 1.21.1, 24w37a

25w06a