-
Bug
-
Resolution: Unresolved
-
None
-
1.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
-
None
-
Confirmed
-
Commands
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 Darth Cobby
- Create two teams named wolfTeam and playerTeam:
/team add wolfTeam /team add playerTeam
- Join the team playerTeam:
/team join playerTeam @s
- Summon a wolf on the team wolfTeam:
/summon wolf ~ ~ ~ {Team:wolfTeam}
- Tame the wolf:
/data modify entity @e[type=wolf,limit=1,sort=nearest] Owner set from entity @s UUID
- Confirm the wolf is still on the team wolfTeam:
/team list wolfTeam
→ The wolf's UUID is displayed
- Try to select the wolf using the "team" target selector argument:
/execute if entity @e[type=wolf,team=wolfTeam]
→ No entities are found
- Try again, this time using the team playerTeam:
/execute if entity @e[type=wolf,team=playerTeam]
→ The wolf is found by the target selector