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

Some entities randomly stop attacking or fleeing during pathfinding

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Unresolved
    • None
    • 1.16.1, 1.16.2, 1.16.3 Release Candidate 1, 1.16.3, 1.16.4 Pre-release 1, 1.16.4 Pre-release 2, 1.16.4 Release Candidate 1, 1.16.4, 20w45a, 20w46a, 20w48a, 20w49a, 20w51a, 21w03a, 1.16.5, 21w05b, 21w06a, 21w08b, 21w10a, 21w11a, 1.17 Pre-release 2, 1.17 Pre-release 5, 1.17 Release Candidate 1, 1.17.1 Release Candidate 1, 1.17.1, 21w37a, 21w38a, 21w39a, 21w43a, 21w44a, 1.18 Pre-release 8, 1.18, 1.18.1 Pre-release 1, 1.18.1, 22w03a, 22w05a, 22w06a, 1.18.2, 22w11a, 22w13a, 22w14a, 1.19 Pre-release 3, 1.19 Pre-release 4, 1.19, 1.19.1 Pre-release 4, 1.19.1 Pre-release 5, 1.19.1 Release Candidate 2, 1.19.1 Release Candidate 3, 1.19.1, 1.19.2, 1.19.3, 23w06a, 1.19.4, 23w14a, 1.20, 1.20.1, 23w33a, 1.20.2 Pre-release 2, 1.20.2 Release Candidate 2, 1.20.2, 23w42a, 1.20.5 Pre-Release 1, 1.20.6, 24w19b, 1.21
    • Confirmed
    • Mob behaviour
    • Normal
    • Platform

      The Bug:

      Whilst a melee-type mob pursues a player/entity, they may stop attacking once in a while when pathfinding towards their targets. This is also an issue with certain passive mobs as certain passive mobs (e.g. a villager) may randomly stop fleeing for a second if a player hits that entity. (This issue is just like the MCPE counterpart, MCPE-48144).

      Affected Entities:

      Please note that there may be more entities affected by this issue that aren't listed below.

      • Cave Spider
      • Creeper
      • Enderman
      • Endermite
      • Iron Golem
      • Silverfish
      • Skeleton (without bow)
      • Spider
      • Stray (without bow)
      • Villager
      • Vindicator
      • Wither Skeleton
      • Wolf
      • Zombie
      • Zombie Villager
      • Zombified Piglin

      Steps to Reproduce:

      1. Summon any of the affected mobs listed above.
      2. Provoke it if necessary and allow the said entity to attack you.
      3. Observe how sometimes, the entity randomly stops and starts pathfinding even though it hasn't made it to its target.

      Observed Behavior:

      Entities stop and start pathfinding at random intervals even though they haven't fully approached their target. This happens randomly and can last several seconds before it starts to pathfind again.

      Expected Behavior:

      Entities would not stop and start pathfinding at random intervals when pursuing their target.

      Code Analysis:

      Code analysis by chumbanotz can be found in this comment.

            Unassigned Unassigned
            CallMeChris CallMeChris
            Votes:
            48 Vote for this issue
            Watchers:
            22 Start watching this issue

              Created:
              Updated:
              CHK: