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

    XMLWordPrintable

    Details

    • Type: Bug
    • Status: Reopened
    • Resolution: Unresolved
    • Affects Version/s: 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
    • Fix Version/s: Minecraft 14w32d
    • Confirmation Status:
      Confirmed
    • Category:
      Mob behaviour

      Description

      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.spawnReinforcements"}]}
        
      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
        /entitydata @e[type=zombie,c=-1] {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.

        Attachments

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

          Issue Links

            Activity

              People

              • Assignee:
                Unassigned
                Reporter:
                marcono1234 [Mod] Marcono1234
              • Votes:
                10 Vote for this issue
                Watchers:
                9 Start watching this issue

                Dates

                • Created:
                  Updated:
                  CHK: