mojira.dev
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 @unknown can be found in this comment.

Linked issues

MC-272837 End crystals sometimes don't render after traveling through end gateways Resolved MC-222110 Fishing bobbers are not visually updated when teleporting Resolved MC-219938 area effect clouds wont teleport Resolved MC-163283 Invincible End crystal hitbox and tp issue/madness Resolved MC-208362 particles do not update location when teleporting area effect cloud Resolved

Comments 25

Confirmed for 14w21b.

Duplicated by MC-49306

Confirmed for 14w25b

Confirmed in 14w33c as well, still broken

Sorry to double-post, but I just tried it in 14w34d as well, and the render glitch still happens there too

15 more comments

Can confirm in 21w03a.

Can confirm in 21w05b.

Can confirm in 21w11a

In addition, falling_block entities have the same issue.

Can confirm in 1.19.2.

trinity pointard

[Mod] Asteraoth

(Unassigned)

Confirmed

Platform

Normal

Commands, Entities, Networking, Rendering

area_effect_cloud, end_crystal, fishing_bobber, lightning_bolt, rendering, teleport

Minecraft 14w02c, Minecraft 14w03a, Minecraft 14w03b, Minecraft 14w08a, Minecraft 14w21b, ..., 1.20.6, 1.21 Pre-Release 2, 1.21.3, 1.21.8, 25w34b

Retrieved