Sleeping in a bed while standing in a Nether portal can move the player thousands of blocks when returning to the over world, depending on how far the player is from spawn.
Set "Show Coordinates" to on.
Build a Nether portal more than 256 blocks from origin (0, ~, 0) in the over world, with the base obsidian at ground level.
Place a bed along side the portal so that it is next to the portal blocks, within reach of the player.
Enter the portal to make sure a new portal is created in the Nether.
Return to the over world.
Be sure you are in Survival mode.
Wait until it is night.
Enter the portal and click the bed.
When the player wakes up they will find they are in a new portal at the same coordinates as their new over world spawn point, except in the Nether.
Leave the portal for a few seconds for portal cool down.
Return through the portal to the over world.
Expected: Player should leave the portal and sleep.
Actual: The portal sequence continues while the sleep sequence also plays. Then the player is placed at the newly set spawn point, except in the Nether, in a newly created Nether portal frame. Returning through this new nether portal will take the player 8 times the distance from their spawn point in the over world.
Linked issues
blocks 1
is duplicated by 28
relates to 1
Attachments
Comments 15
Happened to me, and had no choice but to teleport myself back to spawn as i dont really feel like walking 1678 blocks.
This bug still works in 1.19.6 but no other portal will be generated only the player is teleported at the same coordinates he was in the overworld
Why hasn't this very serious bug been fixed in 4 years? This allows players to teleport, which is completely non-vanilla. I think should pay more attention to this bug.
Confirmed in 1.20.50.
You will teleport to the same coord in the nether as you sleep in the overworld and don't spawn a new nether portal.
If your y≤0, you will teleport into the void of the nether and die.
If your y≥128, you will teleport to the roof of the nether.
If 0< your y <128,you will teleport into the same X and Z as in overworld and no new nether portals will spawn. You might suffocate in a wall or burn in the lava.
You may create a new portal to the overworld and repeat some times to go to over 1 million blocks away from (0,0).
This is because a sleeping player's coords will become the same coord as the bed's coord when they get up , even in the nether.
[^New Project 275 [B3EA732].mp4]