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

Reinforcement zombies are not centered on a block

    XMLWordPrintable

    Details

    • Confirmation Status:
      Confirmed
    • Category:
      (Unassigned)

      Description

      The bug

      Zombies spawning as reinforcement are not centered on a block, instead they use are spawned between 4 blocks.

      How to reproduce

      1. Set the difficulty to "Hard"
        /difficulty hard
        
      2. Set the gamerule doMobSpawning to true if it is not already
        /gamerule doMobSpawning true
        
      3. Set the time to night or make sure there is no light in the area around you
        /time set night
        
      4. Setup a repeating command block with the following command
        /entitydata @e[type=zombie] {Attributes:[{Name:"generic.movementSpeed",Base:0.0}]}
        
      5. Summon a zombie using the following command
        /summon zombie ~ ~ ~ {Attributes:[{Name:"zombie.spawnReinforcements",Base:1.0}]}
        
      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}
        

        → You should see that the zombie is not centered on a block

      Code analysis

      Based on 1.11.2 decompiled using MCP 9.35 rc1

      The method net.minecraft.entity.monster.EntityZombie.attackEntityFrom(DamageSource, float) does not add 0.5 to the X and Z coordinate it uses for spawning the zombies.

        Attachments

          Activity

            People

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

              Dates

              • Created:
                Updated:
                CHK: