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

Skeletons and illusioners, Zombies aren't looking up / down at their target while strafing

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Unresolved
    • None
    • Minecraft 1.12.1, Minecraft 1.12.2 Pre-Release 1, Minecraft 1.12.2 Pre-Release 2, Minecraft 1.12.2, Minecraft 17w43a, Minecraft 17w43b, Minecraft 17w45a, Minecraft 17w45b, Minecraft 17w46a, Minecraft 17w47a, Minecraft 17w47b, Minecraft 17w48a, Minecraft 17w49a, Minecraft 17w50a, Minecraft 18w01a, Minecraft 18w02a, Minecraft 18w03b, Minecraft 18w05a, Minecraft 18w06a, Minecraft 18w07c, Minecraft 18w14a, Minecraft 18w14b, Minecraft 18w15a, Minecraft 18w16a, Minecraft 18w19a, Minecraft 18w19b, Minecraft 18w20b, Minecraft 18w20c, Minecraft 18w21a, Minecraft 18w21b, Minecraft 18w22a, Minecraft 18w22b, Minecraft 18w22c, Minecraft 1.13-pre1, Minecraft 1.13-pre2, Minecraft 1.13-pre4, Minecraft 1.13-pre5, Minecraft 1.13, Minecraft 18w30a, Minecraft 18w30b, Minecraft 18w31a, Minecraft 18w32a, Minecraft 1.13.1, Minecraft 1.13.2-pre1, Minecraft 1.13.2, Minecraft 19w03c, Minecraft 19w04b, Minecraft 19w08b, Minecraft 19w09a, Minecraft 19w12b, Minecraft 19w13a, Minecraft 1.14 Pre-Release 2, Minecraft 1.14 Pre-Release 3, Minecraft 1.14 Pre-Release 4, Minecraft 1.14 Pre-Release 5, Minecraft 1.14.2, Minecraft 1.14.3 Pre-Release 3, 1.14.4, 19w34a, 19w35a, 19w40a, 1.15, 1.15.1, 1.15.1 Pre-release 1, 1.15.2 Pre-release 2, 1.15.2, 20w06a, 20w07a, 20w09a, 20w10a, 20w16a, 20w18a, 20w21a, 1.16.1, 1.16.2, 1.16.4, 20w48a, 20w51a, 21w03a, 21w05b, 21w06a, 21w11a, 21w15a, 21w17a, 1.18.1, 22w03a, 1.18.2, 1.19 Release Candidate 2, 1.19, 1.19.2, 22w46a, 1.19.3, 23w05a, 1.19.4, 1.20 Pre-release 2, 1.20 Release Candidate 1, 1.20, 1.20.1, 1.20.2, 23w45a, 1.20.6, 1.21 Pre-Release 4, 1.21, 1.21.1, 24w34a, 24w35a, 24w36a, 24w37a, 24w38a, 1.21.2 Pre-Release 1, 1.21.2, 1.21.3
    • Confirmed
    • Mob behaviour
    • Normal
    • Gameplay

      The bug

      When a skeleton targets someone from a height, they just keep looking forward instead of up at their target.

      Example

      The fix

      Note: The following is based on a decompiled version of MC 1.15.2

      The problem is located at net.minecraft.entity.ai.goal.RangedBowAttackGoal.java within the updateTask() function.

      The problem can be fixed by doing what's in the fixed code image below, the highlighted text in the image reads: 

      this.entity.getLookController().setLookPositionWithEntity(livingentity, 30.0F, 30.0F);
      

        1. broken code.png
          59 kB
          Greg Milson
        2. fixed code.png
          60 kB
          Greg Milson
        3. Screen Shot 2016-10-24 at 8.47.34 PM.png
          2.03 MB
          Greg Milson

            Unassigned Unassigned
            Mr_Quasi Mr_Quasi
            Votes:
            42 Vote for this issue
            Watchers:
            20 Start watching this issue

              Created:
              Updated:
              CHK: