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

Revengeful zombies / Zombie reinforcements will try to attack you in creative mode



    • Bug
    • Status: Reopened
    • 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
    • Minecraft 14w32d
    • Confirmed
    • Creative
    • Mob behaviour
    • Low


      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

      1. Spawn 3 or more zombies close to each other, while in creative mode;
      2. Walk back a little, and switch to survival mode;
      3. Hit one zombie, and make sure they DON'T hurt you (important);
      4. Quickly switch to creative mode;
      5. Some zombies will be chasing you.

      Steps to reproduce with commands

      1. Set your gamemode to Creative
      2. Set the difficulty to "Hard"
        /difficulty hard
      3. Set the gamerule doMobSpawning to true if it is not already
        /gamerule doMobSpawning true
      4. Set the time to night or make sure there is no light in the area around you
        /time set night
      5. Summon a zombie using the following command
        /summon minecraft:zombie ~ ~ ~ {Attributes:[{Base:1.0,Name:"zombie.spawn_reinforcements"}]}
      6. Hit the zombie a few times
      7. 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.


        1. 2014-10-09_21.07.51.png
          347 kB
        2. 2014-10-09_21.13.17.png
          314 kB
        3. 2014-10-09_21.13.31.png
          35 kB
        4. javaw 2014-07-30 16-56-19-40 (1).mp4
          6.20 MB
        5. MC-64087.mp4
          7.19 MB
        6. Sem título.jpg
          Sem título.jpg
          485 kB
        7. Sem título2.jpg
          Sem título2.jpg
          410 kB

        Issue Links



              Unassigned Unassigned
              marcono1234 [Mod] Marcono1234
              20 Vote for this issue
              12 Start watching this issue