Uploaded image for project: 'Minecraft: Java Edition'
  1. Minecraft: Java Edition
  2. MC-157196

Tamed animals cannot be added to a team

XMLWordPrintable

    • Icon: Bug 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
    • 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

      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

            Unassigned Unassigned
            SilverDarkBlade Kai Cook
            Votes:
            10 Vote for this issue
            Watchers:
            3 Start watching this issue

              Created:
              Updated:
              CHK: