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

Certain mobs attack themselves when targeted by a mob of the same type

    XMLWordPrintable

Details

    • Bug
    • Status: Open
    • Resolution: Unresolved
    • Minecraft 1.11, Minecraft 1.12.2, Minecraft 18w03b, 1.16.1, 20w29a, 20w30a, 1.16.2 Pre-release 1, 1.16.2 Pre-release 2, 1.16.2 Pre-release 3, 1.16.2 Release Candidate 1, 1.16.2 Release Candidate 2, 1.16.2, 1.16.3 Release Candidate 1, 1.16.3, 1.16.4 Pre-release 1, 1.16.4 Pre-release 2, 1.16.4, 20w45a, 20w46a, 20w48a, 20w49a, 20w51a, 21w03a, 1.16.5, 21w05a, 21w05b, 21w06a, 21w08b, 21w14a, 21w15a, 21w16a, 21w17a, 21w18a, 21w19a, 21w20a, 1.17 Pre-release 1, 1.17 Pre-release 3, 1.17 Pre-release 4, 1.17 Release Candidate 1, 1.17, 1.17.1 Pre-release 1, 1.17.1, 21w37a, 21w38a, 21w39a, 21w40a, 21w41a, 21w42a, 21w43a, 1.18 Pre-release 7
    • None
    • None
    • Confirmed
    • Mob behaviour

    Description

      The bug

      If a zombie is provoked by a second zombie using commands, the second zombie will join in the fight against itself, causing it to attack itself repeatedly. Zombie villagers, husks, zombified piglins, wolves, blazes, silverfish, endermites and bees also exhibit this behaviour.

      Originally reported by malon. See also this discussion on Reddit.

      How to reproduce

      1. Summon two zombies that cannot move:
        /summon zombie ~-2 ~ ~ {UUID:[I;0,0,0,1],Attributes:[{Name:generic.movement_speed,Base:0}]}
        /summon zombie ~2 ~ ~ {UUID:[I;0,0,0,2],Attributes:[{Name:generic.movement_speed,Base:0}]}
      2. Summon a snowball, belonging to the first zombie, above the second zombie:
        /execute at @e[nbt={UUID:[I;0,0,0,2]}] run summon snowball ~ ~3 ~ {Motion:[0.0,-0.5],Owner:[I;0,0,0,1]}

        The first zombie begins to attack itself

      Attachments

        Issue Links

          Activity

            People

              Unassigned Unassigned
              Darth Cobby [Helper] j_p_smith
              Votes:
              11 Vote for this issue
              Watchers:
              7 Start watching this issue

              Dates

                Created:
                Updated:
                CHK: