-
Bug
-
Resolution: Fixed
-
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, 1.18.1, 1.18.2, 22w11a, 22w17a, 1.19 Pre-release 1, 1.19, 22w24a, 1.19.1 Pre-release 4, 1.19.1, 1.19.2, 1.19.3, 23w03a, 23w04a, 23w05a, 23w06a, 23w07a, 1.19.4 Pre-release 1, 1.19.4 Pre-release 3, 1.19.4, 23w13a, 23w14a, 1.20 Pre-release 1, 1.20 Pre-release 2, 1.20 Pre-release 4, 1.20.1, 23w31a, 23w32a, 23w33a, 23w35a, 1.20.2 Pre-release 1, 1.20.2 Pre-release 2, 1.20.2, 23w40a, 23w41a, 23w42a, 23w44a, 1.20.4, 24w03b, 24w04a, 24w05a, 24w07a, 24w11a, 24w12a, 1.20.6, 1.21, 1.21.1
-
None
-
Confirmed
-
Mob behaviour
-
Low
-
Gameplay
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.
Originally reported by malon. See also this discussion on Reddit.
Affected mobs
Bees, blazes, endermites, husks, pandas, ravagers, silverfish, witches, wolves, zombies, zombie villagers, zombified piglins.
How to reproduce
- Summon two zombies that cannot move, with unbreakable helmets for sun protection:
/summon minecraft:zombie ~-2 ~ ~ {Tags:["z1"],CustomName:"z1",CustomNameVisible:1b,ArmorItems:[{},{},{},{id:"minecraft:leather_helmet",components:{"minecraft:unbreakable":{}}}],attributes:[{id:"minecraft:generic.movement_speed",base:0d}]}
/summon minecraft:zombie ~2 ~ ~ {Tags:["z2"],CustomName:"z2",CustomNameVisible:1b,ArmorItems:[{},{},{},{id:"minecraft:leather_helmet",components:{"minecraft:unbreakable":{}}}],attributes:[{id:"minecraft:generic.movement_speed",base:0d}]}
- Have the first zombie provoke the second zombie:
/damage @n[type=zombie,tag=z2] 0 minecraft:mob_attack by @n[type=zombie,tag=z1]
→ The first zombie begins to attack itself
Code analysis
Code analysis can be found in this comment.
- is duplicated by
-
MC-202285 Certain mobs can spread their anger to any mob, leading them to be angry with theirselves, attacking them.
- Resolved
-
MC-220751 Zombie that hit another zombie with snowball takes random damage
- Resolved
-
MC-227157 Blazes can kill each other telepathically
- Resolved
-
MC-236459 Zombies Telepathically Damage other Zombies
- Resolved
-
MC-255989 Mobs of same type can attack from any distance when aggravated
- Resolved
-
MC-259970 /damage command cause damage to the source of the damage
- Resolved
-
MC-260473 When made to fight with /damage zombies can attack at great distances and through walls
- Resolved
-
MC-263895 Certain mobs have unnatural reach when aggravated towards another
- Resolved
-
MC-268709 ravager and witch attack themselves
- Resolved
- relates to
-
MC-227154 Blazes retaliate against each other despite being pack mobs
- Resolved