mojira.dev
MCPE-32815

Hostile Mobs forgetting The Player the moment they move away from Their View

Mobs have been easily forgetting the player and never seem to remember them or where they are whenever they go out of their sight.

Mobs that I encountered so far that has this issue: Zombie, Skeleton, Creeper


Repro steps from comments below: 

How to reproduce:

  1. Go about 40 blocks into the air, and create a little zig-zag walk way out of full blocks. On the corners place glass pillars.

  2. summon a creeper on one end of the walk way, make it target you, and then walk behind one of the glass pillars.

  3. You will see the creeper instantly stop, forget about you completely, and just stand there until it decides to randomly pathfind.

Linked issues

Attachments

Comments 15

Mobs immediately forget where the player is when they do not have a direct line of sight. This makes it difficult for them to follow and makes the game too easy for the player. Mobs should continue to the last known player location before randomly wandering away. This also applies to baby zombies that are up against a one-block step.

Mobs used to be able to path to find the player even if it meant going around a corner. Now they are not much smarter than a slime.

Older report i know, but this bug is still around over a year later! Can confirm for xbox one, and windows 10 in all 1.11.x updates.

How to reproduce:
1. Go about 40 blocks into the air, and create a little zig-zag walk way out of full blocks. On the corners place glass pillars.
2. summon a creeper on one end of the walk way, make it target you, and then walk behind one of the glass pillars.
3. You will see the creeper instantly stop, forget about you completely, and just stand there until it decides to randomly pathfind.

You can see a full demonstration of this bug, in my recent bugrock of the week episode:
https://youtu.be/qR5M5v0XDM0?t=438

I think the reporter should be changed as well, so the description has more info, and this will be updated more frequently

That would be nice indeed🙂

I have taken a look at the game's code for "creeper.json" and this is what I've found:

"minecraft:behavior.nearest_attackable_target": {
"priority": 1,
"entity_types": [
{
"filters": {
"test": "is_family",
"subject": "other",
"value": "player"
},
"max_dist": 16
}
],
"must_see": true,
"must_see_forget_duration": 0.0
},

It seems as though the memory of where the player is, is set at "0.0," causing the mob to stop as soon as the player is out of range.
Other mobs (such as the Skeleton and its variants, the Witch, Vex, & Silverfish) are missing the "must_see_forget_duration" tag. The only mobs I've found to have this with a variable higher than 1.0 is almost all of the Illagers, the Zombie and all of its variants & the Enderman.
Note: Some mobs aren't supposed to have this tag such as Shulkers so I hope someone can correct me if this list is incorrect.

5 more comments

Beta 1.16.0.55. Creepers still lose an attention to player if it loses an direct seeing!

Can confirm for 1.16.0.55, creepers lose interested in players immediately after losing line of sight with them. Tested with a couple of other mobs, and as far as i can tell this only affects creepers at the moment.

It's still in Beta 1.16.0.57!

I got this to happen with zombies too. I am attaching a video.

M.

(Unassigned)

286662

Community Consensus

Windows

Windows 10 Pro

mob-behavior

1.16.0.55 Beta, 1.13.3, 1.13.1, 1.2.13.60, 1.11.4, 1.14.1.2 Beta, 1.14.0

1.16.0

Retrieved