0e36cb4d7a
A bed sets the respawn point as vanilla's ServerPlayer.startSleepInBed does (once in reach, day or night): a RespawnConfig at the bed's head with the player's yaw, not forced; straw beds never set it (straw_bed_rule). Respawning resolves it through findRespawnAndUseSpawnBlock, which now handles beds: AbstractBedBlock.findStandUpPosition (beside the bed on the side away from the yaw it was set from, around it, then on it; bunk beds too) through DismountHelper, facing the bed. A bed that is gone or boxed in sends the player to the world spawn with "You have no home bed or charged respawn anchor, or it was obstructed", and the point is forgotten: in the window's world, on the server thread and for LAN guests. Leaving the End goes to the bed too (not using it up). Saves keep a bed as the player's `respawn` (resolved through its block when loaded), and a `spawnpoint` in the Overworld as forced. A fallback that is the world spawn follows `setworldspawn` with a bed or anchor set. tools/test_use_item_on_parity.py: respawn cases at a bed's head set from some yaw (intact, bunk, only the foot left or gone, crowded), against vanilla's real findRespawnAndUseSpawnBlock; 4000/4000 and 12000/12000 on two seeds. lan_e2e `beds`: intact, gone and boxed in, host and guest. Fixes #1308 Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>