-
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:
- Summon any of the affected mobs listed above.
- Provoke it if necessary and allow the said entity to attack you.
- 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.
- clones
-
MC-147516 Hostile mobs will sometimes stop attacking/following their target when directly next to it
- Resolved
-
MC-181611 Vindicators stop attacking you when they are standing really close to you
- Resolved
- is duplicated by
-
MC-193008 Mob Randomly Loses Attention to Player, Glitchy Behaviour
- Resolved
-
MC-199760 Vindicators will stop holding up their axe, and stop moving for a second when chasing entities
- Resolved
-
MC-209708 Vindicator attack incorrectly
- Resolved
-
MC-211355 Baby zombie pathfinding issue
- Resolved
-
MC-217261 Endermans sometimes calm down when they have been attacked or seen
- Resolved
-
MC-221190 melee mobs will stop before hitting the player
- Resolved
-
MC-238615 vindicator chase bug
- Resolved
-
MC-238616 vindicator chase bug
- Resolved
-
MC-263830 Hostile mobs can't chase you properly
- Resolved
-
MC-271921 Iron Golem stops attacking after some time until the player moves
- Resolved
- relates to
-
MC-104758 Polar bears stop attacking and pathfinding after being attacked during its attack animation and when players being on multiple blocks at once
- Open
-
MC-146524 Certain mobs attack while the player is in creative or spectator mode
- Open
-
MC-196449 Piglins, Piglin Brutes, Hoglins and Zoglins have trouble pathfinding to the player when attacking
- Resolved
-
MCPE-48144 Mobs sometimes randomly stop attacking and following the target
- Resolved
-
MC-87093 Skeleton, wither skeleton, stray and bogged arm animation glitch if they can't reach you
- Reopened
-
MC-191642 Inconsistent mob melee attack rate / mobs double-attacking
- Reopened
-
MC-248707 Hostile mobs targeting an entity they cannot pathfind to or have just attacked will repeatedly look at the entity, then away
- Reopened
-
MC-2310 Wrong attack radius calculation damages/kills entities through blocks and corners
- Resolved