mojira.dev
MCPE-225805

Changing spawn point while dead does not work

The bug

When the /spawnpoint command is used to change the spawn point of dead players who are waiting to respawn, the new spawn point is ignored. Upon respawning, the player appears at their previous spawn point, and the new spawn point is only used for subsequent respawns.

Motivation

Consider a PVP minigame. Prior to the game, all players have their spawn set to a spectator area. When they die, if they choose to respawn, they will go there. Once a winner is decided, all players should be returned to the lobby. We teleport them there and set their spawn there.

If any players are still dead and haven’t clicked respawn yet at this time, they get properly teleported to the lobby (while still dead). When they finally click respawn, they should respawn in the lobby. But oops, this bug happens and they go to the spectator area instead.

How to reproduce

  1. Set up a chain of redstone repeaters starting from a button and leading into a command block

  2. Put /spawnpoint @a ~ ~1 ~ into the command block

  3. Place a command block next to the button with /kill @a

  4. Stand by the button and run /spawnpoint @a

  5. Press the button; it should kill you, but don’t respawn yet

  6. Wait for the other command block to activate and change your spawn

  7. Click respawn

Expected results

You should respawn above the command block

Observed results

You respawn next to the button

Notes

Java Edition does not have this issue. It’s unclear if this used to work correctly in Bedrock and is now broken, or if it has always been broken.

Comments 0

No comments.

tryashtar

(Unassigned)

Unconfirmed

Windows

1.21.94 Hotfix

Retrieved