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
Set up a chain of redstone repeaters starting from a button and leading into a command block
Put
/spawnpoint @a ~ ~1 ~
into the command blockPlace a command block next to the button with
/kill @a
Stand by the button and run
/spawnpoint @a
Press the button; it should kill you, but don’t respawn yet
Wait for the other command block to activate and change your spawn
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.