The bug
If you sleep in a bed and it is broken, you are supposed to be sent to the world spawn. However, if you break and replace the bed, you respawn at the bed again.
To reproduce
Place a bed far away from world spawn
Sleep in it
Break it
Place it again at the same location
Run
/kill @s
→ ❌ You respawn at the bed, not at world spawn
Linked issues
is duplicated by 1
Comments 4
Breaking it and then placing it sounds very intentional. The spawn point will reset for beds until you sleep in it again, no matter if it's in the same position or not. Same with respawn anchors, you can only respawn with them when they're charged with at least 1 and up to 4 glowstone blocks.
1.15.2 and 20w21a are affected. In 20w21a, this occurs for both beds and respawn anchors. This might be intended.
Also, other methods of invalidating and then re-validating your respawn point, such as obstructing your spawn point with blocks but then removing the blocks before you die, do not reset your spawn point to world spawn.