The Bug
When travelling from the Nether to the overworld, it is usually the case that portals outside of the world border are considered invalid, and therefore a new portal inside the world border is created so players are safe.
But this is not the case for outside portals that are outside of the world border by ~128m or less. These portals will let the player use them, and then the player will instantly die.
How to Reproduce:
Create a world and input these 3 commands:
/worldborder center 0 0 /worldborder set 2000 /tp @s 1000 70 0
Build a portal and go to the nether.
Input:
/execute in overworld run worldborder set 1780
Your overworld portal is now ~110m from the border, on the wrong side. We had to use an execute command because without it we'd only be affecting the nether's world border and not the overworld's. See MC-121997.
/gamemode survival
and return to the overworld.
-> "Player suffocated in a wall."
If you repeat these steps and use 1750 instead of 1780, you'll find that a new portal is created, as intended.
Linked issues
is duplicated by 1
Attachments
Comments 6
@unknown, you don't need to confirm for old versions:
We can't add them as affected versions (we can only add latest release and latest snapshot)
Old versions won't be fixed any way
Affects 1.16, 1.16.1, 1.16.2 pre-release 1. (probably all the snapshots between em) And i dont think that the issue is if its close enough to the world border its still valid, In a survival world on a server (wb at 4000) in nether the portal took me to 12000 killed instantly. Nether portals now just kill you if you go outside the border, they are not aware of the world border, and punish the player for not being aware of it either.
Worldborder should either be set to be much smaller in the nether to match the overworlds, set independently then the overworld, the nether portal should just not light if it cannot find a location that wont instant kill you, or it should send you as far as it can, i.e. on the world border... Not even dealing with linking, The game shouldnt just auto kill you, and remove any chance of recovering stuff unless you have access to creative.
Confirmed for 1.10.2.