mojira.dev
MC-143473

Teleporting a mob while it is pathfinding will make it navigate back to where it was originally going

The bug

Teleporting a mob while it is trying to pathfind to a position will make it try to go in a straight line directly pack to where it was going to, and then continue on as normal if it reaches that spot. If the spot they are pathfinding to is above them they will just jump and spin when they get to the X/Z coordinates. (Image 4)

Video of this happening: https://youtu.be/MSxZZAcP5q4
Somewhat reproducing the bug: https://youtu.be/rKRA9cnjCXk

How to reproduce

  1. Make a new creative world

  2. Spawn a bunch of e.g. creepers

  3. Fly away then type /tp @e[type=creeper] @s

  4. Watch the mobs carefully as they travel in straight lines to where they were trying to travel to originally.

Or,

  1. Make a new superflat world

  2. Set it to night

  3. Type /tp @e @p and watch the mobs carefully

Attachments

Comments 2

Although the earliest version in the affected versions list is a 1.14 snapshot I saw this 2 days ago in 1.12.2. It didn't occur to me at the time that it was worthy of reporting, but glad to see it fixed in modern versions.

Nixinova

eowyn36

Confirmed

Normal

Mob behaviour

Minecraft 19w05a, Minecraft 19w06a, Minecraft 19w07a, Minecraft 19w08b, Minecraft 19w09a, ..., 1.15.1 Pre-release 1, 1.15.2, 20w06a, 20w07a, 20w16a

1.16 Pre-release 3

Retrieved