Nether portal range too large
What I expected to happen was...:
When going through a portal from the overworld to the nether, it should connect only to existing portals within 128 blocks of horizontal distance from the corresponding coordinates.
What actually happened was...:
Overworld portals connect to nether portals up to 143 blocks away.
Steps to Reproduce:
- Place a portal block at (0,0) in the nether
- In the overworld place a portal at (1031, 0). This connects to the existing portal as expected, because 1031/8 = 128.75, rounded down it's withing the range.
- Place a portal at (1032, 0). This one shouldn't connect, but it does. Same thing happens up to (1151, 0)
- Place a portal at (1152, 0). This is the first one that doesn't connect
I tested this in 1.12-1.14 and the range is 128 as expected. The bug seems to appear in 1.15+
I haven't tested it going through the portal the other way, but presumably the same thing happens.
Environment
Windows 10
Java 1.8.0 64bit
Linked Issues
Created Issue:
Nether portal range too large
What I expected to happen was...:
When going through a portal from the overworld to the nether, it should connect only to existing portals within 128 blocks of horizontal distance from the corresponding coordinates.
What actually happened was...:
Overworld portals connect to nether portals up to 143 blocks away.
Steps to Reproduce:
- Place a portal block at (0,0) in the nether
- In the overworld place a portal at (1031, 0). This connects to the existing portal as expected, because 1031/8 = 128.75, rounded down it's withing the range.
- Place a portal at (1032, 0). This one shouldn't connect, but it does. Same thing happens up to (1151, 0)
- Place a portal at (1152, 0). This is the first one that doesn't connect
I tested this in 1.12-1.14 and the range is 128 as expected. The bug seems to appear in 1.15+
I haven't tested it going through the portal the other way, but presumably the same thing happens.
Environment
Windows 10
Java 1.8.0 64bit
relates to
is cloned by
is cloned by
@[Mod] ampolive , I've seen this issue too and it's not a duplicate. MC-183103 refers to the portal mechanic introduced in 1.15. The range was too large because the search for the game was looking for the portal in the surrounding chunks, in a box of 17*17 chunks centered on the chunk containing the ideal block portal of arrival. It means that if your portal block was on the bordure of a chunk, the maximal teleportation distance was 8 * 16 + 15 = 143. You can see the diagram illustrating this below.
1.15 teleportation limit:

In 1.16.2, they implemented a filter which acts after the detection of portals and which is supposed to bring the limit back to 128.
I represent it as a circle:
1.16.2 teleportation limit:

And the issue I reported is about this filter. It should be 128 blocks like on the schema, but it's 135 instead. So I think these issues are not the same.
I just had this with two portals approx 300 blocks apart (about +100 and -200 on the x axis) in the overlord. Second portal (I repaired an abandoned one) teleported me to the location of the first one in the nether, rather than creating a new one. And going back in returned me to my original/first portal. (latest bedrock, dedicated server)
This has been fixed at some point, see
MC-197538