mojira.dev
MC-114796

Overworld nether portals outside of the world border (up to ~128m from the border) are considered valid

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:

  1. Create a world and input these 3 commands:

    /worldborder center 0 0
    /worldborder set 2000
    /tp @s 1000 70 0
  2. Build a portal and go to the nether.

  3. 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.

  4. /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

Attachments

Comments 6

Confirmed for 1.10.2.

@unknown, you don't need to confirm for old versions:

  1. We can't add them as affected versions (we can only add latest release and latest snapshot)

  2. Old versions won't be fixed any way

Sorry about that @unknown, it is however confirmed for 17w06a.

Please do not mark unreleased versions as affected.
You don't have access to them yet.

Affects 1.14

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.

Paint

(Unassigned)

Confirmed

Important

Player

mojang_internal_1, nether_portal, world-border

Minecraft 1.11.2, Minecraft 17w06a, Minecraft 17w13a, Minecraft 17w13b, Minecraft 17w14a, ..., 20w16a, 20w20a, 20w22a, 1.16.1, 1.16.2 Pre-release 1

21w14a

Retrieved