Mojira Archive
MC-44654

Some entities don't update position to the client when teleported

The bug

When you try to teleport certain entities using the @e selector, they do not move visually (i.e. client-side), but actually move server-side. You can then for example not hit or interact with the entity and must reload the world to see its real position and hit it again.

Affected entities

  • Area effect cloud (minecraft:area_effect_cloud)
    Only when not changing size (?)
  • End crystal (minecraft:end_crystal)
  • Fishing bobber (minecraft:fishing_bobber)
  • Lightning bolt (minecraft:lightning_bolt)

How to reproduce

  1. Enable F3+B
  2. Run
    /summon minecraft:area_effect_cloud ~ ~ ~ {Radius:0.5,Duration:9999}
    
  3. Go some blocks away
  4. Run
    /teleport @e[type=minecraft:area_effect_cloud] ~ ~ ~
    

    → Notice that the Area Effect Cloud did not move

  5. Close the world and re-enter it
    → Notice that the Area Effect Cloud now changed its position

Code analysis

Code analysis by Marcono1234 can be found in this comment.