mojira.dev
MC-107113

Teleporting a player doesn't teleport its spectators

The bug

When we use Spectator mode to spectate a player, and that player is teleported, we stay behind, leaving the spectator view of the player. With mobs, on the other hand, the spectator teleports with the mob.

How to reproduce

  1. Start a server or LAN world.

  2. Spectate a player, and teleport 1000 blocks away.
    → ❌ You don't teleport with the player

Linked issues

Comments 16

Please do not mark unreleased versions as affected.
You don't have access to them yet.

This ticket is very difficult to comprehend, please use the Bug Report Guidelines here when posting issues.

Changed title/description; I actually can't verify the bug itself (need multiplayer), but that's what OP meant.

I'd like to add that if you press shift you teleport to their location, but - if they cross dimensions you will be teleported to the coordinates in their previous dimension, not their current one

As of 1.15, the player now teleports to the location, however, none of the chunks load even with the gamerule spectatorsGenerateChunks being true. There is also now something new, when you teleport a long distance away, the entity now disappears; the entity is still there and you can still hear it, but it's invisible (I believe this will only happen if you teleport into new chunks for the first time though I am not 100% sure); only when you exit and reopen the world will the entity appear again.

6 more comments

Still an issue in 1.16.5

Still an issue in 1.18.2

Note that it doesn't just apply to specating players. It happens with all entities that can be spectated. 

I would also like to note that the entity doesn't even need to be teleported into unloaded chunks. If the displacement is large enough, the spectating player's position doesn't update to the entity's new position (or any new positions after that until exiting the entity being spectated).

Valentin Chassignol

(Unassigned)

Confirmed

Platform

Low

Commands, Player

multiplayer, teleport

Minecraft 1.10.2, Minecraft 16w35a, Minecraft 16w36a, Minecraft 16w38a, Minecraft 1.13.2, ..., 21w18a, 21w19a, 1.18.2, 1.20.2, 23w46a

Retrieved