When a creaking is targeting the player and both of them are in water, the creaking will swim trying reach the player, which is expected.
However, when the player looks at the creaking and the mob completely submerges when staying still, after looking away again the creaking pathfinding will break, making it swim to a random direction to get out of water, even if it despawns.
How to reproduce
Spawn a creaking near a river.
Trigger the creaking and run into the river.
Notice how it follows you in water.
Look at the creaking until it submerges completely.
Look away from it again.
Expected result
The creaking will reach the player normally while swimming.
Observed result
After being submerged, the creaking pathfinding breaks and goes into a random direction instead of reaching the player.
Attachments
Comments 4
Hi!
Could you please record and upload a video of this issue?
Also does this issue occur on standard waters or only river?
This ticket will automatically reopen when you reply.
I mentioned rivers because it was just easier to generate a default world and get to a river, but this can be reproduced in any relatively big enough body of water.
The creaking will try to pathfind to the player, but as soon as it gets completely submerged it will then uselessly try to pathfind outside the water to get into the water again.
Video attached:
A few more tests indicate that the mob still targets the player, but it tries to get out of the water first before pathfinding to them again.
Also seems like this is a general pathfinding issue with most mobs, but I'm unable to find a report for it. Happens with lava too.