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

Mobs won't attack if target isn't in the middle of a block

    XMLWordPrintable

    Details

    • Type: Bug
    • Status: Resolved
    • Resolution: Fixed
    • Affects Version/s: Minecraft 15w41b, Minecraft 15w42a, Minecraft 15w43a, Minecraft 15w43b, Minecraft 15w43c, Minecraft 15w44a, Minecraft 15w44b, Minecraft 15w49b, Minecraft 1.9.1 Pre-Release 3, Minecraft 1.9.1, Minecraft 1.9.2, Minecraft 16w14a, Minecraft 1.9.3 Pre-Release 1, Minecraft 1.9.4, Minecraft 1.10, Minecraft 1.10.2, Minecraft 16w40a, Minecraft 16w41a
    • Environment:
      Win10, Java8u77x64
    • Confirmation Status:
      Confirmed

      Description

      Zombies and some other mobs (slimes, silverfish, endermites...) sometimes don't succeed in hitting you if you aren't in the middle of a block. Instead they will try to hit the middle of the block.

      Steps to reproduce:

      1. Create a superflat world with cheats enabled
      2. Run the command /tp @p 0 ~ 0.9
      3. Run the command /gamerule doMobSpawning false
      4. Run the command /time set night
      5. Run the command /summon Zombie ~ ~ ~-5
        This does not always seem to work, tough.

      Or an easier method:

      1. Place down a wall an walk as close to it as you can
      2. Spawn a zombie in front of you and note how it doesn't succeed in hitting you

      EDIT:
      Now mostly happens with baby zombies. Also see [Mod] Marcono1234's comment.


      Code analysis by [Mod] Marcono1234 can be found in this comment.

        Attachments

          Issue Links

            Activity

              People

              • Assignee:
                ProfMobius [Mojang] ProfMobius (Thomas Guimbretiere)
                Reporter:
                SWdV Steven W.d.V.
              • Votes:
                26 Vote for this issue
                Watchers:
                14 Start watching this issue

                Dates

                • Created:
                  Updated:
                  Resolved:
                  CHK: