-
Bug
-
Resolution: Unresolved
-
Minecraft 14w30c, Minecraft 14w31a, Minecraft 14w32a, Minecraft 1.8, Minecraft 1.8.1, Minecraft 1.8.8, Minecraft 15w32b, Minecraft 15w35e, Minecraft 15w39a, Minecraft 15w47c, Minecraft 15w49b, Minecraft 1.8.9, Minecraft 15w50a, Minecraft 16w05b, Minecraft 1.10.2, Minecraft 16w41a, Minecraft 16w42a, Minecraft 1.11.2, Minecraft 17w06a, Minecraft 17w17b, Minecraft 1.12 Pre-Release 6, Minecraft 1.12.1, Minecraft 1.12.2, Minecraft 17w43a, Minecraft 17w43b, Minecraft 17w45b, Minecraft 17w46a, Minecraft 18w03b, Minecraft 18w07c, Minecraft 18w08b, Minecraft 1.13.1, Minecraft 1.13.2, Minecraft 1.14 Pre-Release 5, 1.15.2, 20w12a, 20w13b, 1.16.4, 20w45a, 1.16.5, 21w07a, 21w17a, 1.17.1, 21w39a, 1.18 Pre-release 6, 1.18 Release Candidate 1, 1.18.1 Release Candidate 2, 1.18.1, 1.18.2, 22w19a, 1.19, 1.19.2, 1.19.3, 23w06a, 1.20.1, 1.20.4
-
Confirmed
-
Creative
-
Mob behaviour
-
Low
-
Gameplay
What I expected to happen
Reinforcement zombies to not be hostile towards players in creative mode.
What actually happened
Reinforcement zombies try to attack the player who attacked the zombie spawning the reinforcement zombies even if the player is in creative mode.
Steps to reproduce
- Spawn 3 or more zombies close to each other, while in creative mode;
- Walk back a little, and switch to survival mode;
- Hit one zombie, and make sure they DON'T hurt you (important);
- Quickly switch to creative mode;
- Some zombies will be chasing you.
Steps to reproduce with commands
- Set your gamemode to Creative
- Set the difficulty to "Hard"
/difficulty hard
- Set the gamerule doMobSpawning to true if it is not already
/gamerule doMobSpawning true
- Set the time to "midnight" or make sure there is no light in the area around you
/time set midnight
- Summon a zombie using the following command
/summon minecraft:zombie ~ ~ ~ {Attributes:[{Base:1.0,Name:"zombie.spawn_reinforcements"}]}
- Hit the zombie a few times
- Search for the spawned reinforcement zombies, if there are no other zombies you can use the following command
/execute as @e[type=zombie,sort=nearest,distance=..40] run data merge entity @s {Glowing:1b}
Code analysis
Based on 1.11.2 decompiled using MCP 9.35 rc1
Either the method net.minecraft.entity.EntityLiving.setAttackTarget(EntityLivingBase) should not set players in Creative or Spectator mode as target or the method net.minecraft.entity.monster.EntityZombie.attackEntityFrom(DamageSource, float) should test if the player is in Creative mode.
- is duplicated by
-
MC-48703 Social spawned zombie will pathfind to you even in creative
- Resolved
-
MC-50868 Social zombies go after players in creative mode
- Resolved
-
MC-75400 Zombie reinforcements are hostile to creative players
- Resolved
-
MC-75826 Zombie from Reinforcements becomes hostile
- Resolved
-
MC-87583 Reinforcement Zombie follows Creative Player
- Resolved
-
MC-88102 Hostile Zombie In Creative?
- Resolved
-
MC-93240 Zombie's still hostile if you turn from survival to creative
- Resolved
-
MC-93951 Reneforcement Zombies still attack the player in Creative Mode (You Must Read Description)
- Resolved
-
MC-96632 Reinforcement zombies will attack creative mode player.
- Resolved
-
MC-109146 Natural spawned zombies will sometimes go for player in creative if near
- Resolved
-
MC-135864 Reinforcement Zombies summoned by hurting Zombies try to attack creative mode players
- Resolved
-
MC-175852 Zombie still spawn reinforcements even on Creative
- Resolved
-
MC-176402 Zombified Piglins spawn recruitment zombies that pathfind towards the player when attacked by player in creative mode
- Resolved
-
MC-249357 Reinforcement zombies chase players in creative or spectator if summoned to target that player
- Resolved
- relates to
-
MC-146524 Certain mobs attack while the player is in creative or spectator mode
- Open
-
MC-15112 Zombies retaliate when only hitten in Creative Mode
- Resolved