mojira.dev
MC-163266

When the target in /spectate command is too far, the player's movement will not be restricted at client-side

To Reproduce

  1. Change your game mode to spectator.

    • /gamemode spectator
      /gamemode spectator
  2. Summon an entity, like an armor stand.

    • /summon minecraft:armor_stand ~ ~ ~ {Tags: ["target"]}
      /summon minecraft:armor_stand ~ ~ ~ {Tags: ["target"]}
  3. Make the current chunk forceloaded in case the entity despawns.

    • /forceload add ~ ~
      /forceload add ~ ~
  4. Fly away, or use command.

    • /tp ~1234 ~ ~
      /tp ~1234 ~ ~
  5. Use spectate command.

    • /spectate @e[limit=1,tag=target]
      /spectate @e[limit=1,tag=target]
  6. ❌ You can fly to anywhere freely at clientside.

    • You can find that you don't move at serverside by executing

      • /data get entity @s Pos
        /data get entity @s Pos

Linked issues

Comments 7

I see the issue I opened was a duplicate but please check out MC-167621 either way because it does contains a bit of extra information that was not mentioned here.

Can confirm in 20w51a. To add on, when you stop spectating the entity, you will be teleported to its position.

Can confirm in 21w05a.

Can confirm in 21w05b.

Can confirm in 21w06a.

Can confirm in 21w07a.

Can confirm in 1.19.

SPGoding

slicedlime

Confirmed

Normal

Commands

/spectate, command

19w41a, 19w44a, 19w45b, 19w46a, 19w46b, ..., 21w05b, 21w06a, 21w07a, 1.17 Pre-release 2, 1.19

23w03a

Retrieved