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

Hostile mobs targeting an entity they cannot pathfind to or have just attacked will repeatedly look at the entity, then away

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Unresolved
    • None
    • 1.18.2 Pre-release 1, 1.18.2, 22w15a, 22w16b, 1.19 Pre-release 3, 1.19, 1.19.1 Pre-release 4, 1.19.2, 22w42a, 1.20, 23w35a, 1.20.5 Pre-Release 1, 24w33a
    • Confirmed
    • Mob behaviour
    • Low
    • Platform

      Closely relates to MC-87093, however a "tracking" animation is not necessarily present; zombies do not show the arm animation problem from that ticket yet still exhibit this other behaviour. I cannot find any other tickets that describe this behaviour after searching.

      The bug

      When a hostile mob has line of sight to an entity they are targeting but is physically incapable of reaching them, they will repeatedly turn to face the entity and then back to the direction they were originally facing.

      How to reproduce

      A setup is shown in the attached screenshots featuring the player standing on a block as to be one block higher than the mob, which is trapped in a hole that allows them to see but not escape. Standing on the block should highlight the behaviour.

      Expected results

      The mob should either act normally as if no player is present, or continuously stare at the player they're interested in.

      Actual results

      The mobs appear to switch between acting normally and attempting to reach the player, causing them to nod strangely.

        1. 2022-02-19_21.21.03.png
          2022-02-19_21.21.03.png
          199 kB
        2. 2022-02-19_21.21.04.png
          2022-02-19_21.21.04.png
          198 kB
        3. 2022-02-19_21.21.05_2.png
          2022-02-19_21.21.05_2.png
          197 kB
        4. 2022-02-19_21.21.05.png
          2022-02-19_21.21.05.png
          198 kB
        5. 2022-02-19_21.22.48.png
          2022-02-19_21.22.48.png
          186 kB
        6. 2022-02-19_21.22.49.png
          2022-02-19_21.22.49.png
          185 kB
        7. 2022-02-19_21.22.50_2.png
          2022-02-19_21.22.50_2.png
          184 kB
        8. 2022-02-19_21.22.50.png
          2022-02-19_21.22.50.png
          184 kB
        9. 2022-05-25 14-39-25.mp4
          2.63 MB
        10. 248707demo.flv
          2.96 MB
        11. MC-248707.mp4
          5.55 MB

            Unassigned Unassigned
            Awesoman3000 Connor Steppie
            Votes:
            13 Vote for this issue
            Watchers:
            5 Start watching this issue

              Created:
              Updated:
              CHK: