mojira.dev
MC-272322

When you are riding an entity through portals, you and the entity may teleport to the wrong place

The bug

When you are riding an entity and teleporting through portals, you and the entity may teleport to wrong place and fall/suffocate/fall into the void.

Steps to reproduce:

1.Create a superflat world (This bug can happen in default world type, but in superflat worlds it seems always occurs)

2./gamerule entitiesWithPassengersCanUsePortals true

3.Go into the nether.

4.Summon and tame a horse and ride it.

5.Go back from the nether to overworld with it through the portal.

Observed result:

You are teleported into mid-air and fall, then the horse died(in survival you will also die)

Expected result:

You are teleported normally to the overworld portal.

Notes:

This affects both nether portals and end portals.

Linked issues

Attachments

Comments 4

This also applies vise-versa (travelling from the Overworld to the Nether could spawn you in the void if the Overworld portal is too low).

Another discovery is it might teleport you to the void and cause softlock(You don't take fall damage)

Reported as MC-272329.

More tests:

This bug happens mostly when teleporting from nether to overworld.  (In some situations, overworld to nether, overworld to the end, the end to overworld also happens)

When you riding an entity and teleport from nether to overworld, you will be teleport correctly, but the horse will teleport to the same place in the nether, if the distance from your place in overworld and the horse is close, you will be teleport to the horse, cause this bug.

If the distance from your place in overworld and the horse is far(the horse is in unloaded chunk), it will cause a huge desync from client and server, and your game will be softlock, you can't break blocks in survival, and even if you fall into the void, you won't take any damage. The server maybe freeze in this situation(That's MC-272329) When you quit and relog, you will be teleported to the horse.

COMETC2021A1

Panda4994

Community Consensus

Platform

Very Important

Entities

entity, gamerules, portal

24w21a, 24w21b

1.21 Pre-Release 1

Retrieved