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

Some melee mobs randomly stop attacking whilst pathfinding

    XMLWordPrintable

    Details

    • Type: Bug
    • Status: Reopened
    • Resolution: Unresolved
    • Affects Version/s: 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
    • Fix Version/s: None
    • Labels:
    • Confirmation Status:
      Confirmed
    • Category:
      Mob behaviour
    • Mojang Priority:
      Normal

      Description

      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 issue is just like the MCPE counterpart, MCPE-48144).

      Affected mobs:

      • Vindicator
      • Zombie
      • Wither skeleton
      • Skeleton (without bow, with bow pathfinding is fine)
      • Stray (Same as said above for the skeleton, without bow is only when it happens)
      • Spider
      • Cave spider
      • Creeper
      • Enderman
      • Endermite
      • Villager
      • Zombified piglin
      • Zombie villager
      • Iron golem
      • Silverfish

      Do note this list may be incomplete. Please let me know if so and I'll update the list.

      Code analysis here by Chumbanotz

      How to reproduce

      1. Summon a melee-type mob
      2. Provoke it
        Notice the mob randomly stopping and starting pathfinding even though it hasn't made it to its target. This happens randomly and can even last up to 5 seconds before it starts to pathfind again.

        Attachments

          Issue Links

            Activity

              People

              Assignee:
              Unassigned Unassigned
              Reporter:
              Les3awe [Mod] Les3awe
              Votes:
              27 Vote for this issue
              Watchers:
              16 Start watching this issue

                Dates

                Created:
                Updated:
                CHK: