This world was created in 1.16.2. And I have not modified the game with mods. I only have a resource pack that allows me to see the chunk borders.
The problem is:
I had one nether portal (1) and it was working fine. But as soon as I created a second one (2) (a couple 100 blocks from each other in the overworld) the problems began. When I entered portal 2 in the overworld it sent me to the location of the portal 1 in the nether. And there I could not come back, after trying for 20 minutes everything that came to mind it suddenly worked and I was transported to the location of portal 1 in the overworld.
I tried manually making the portals in the correct location in the nether first, before trying to use them (dividing the coordinates by 8 and using online coordinate calculators). It seemed to work well for those 2 portals.
But now I needed to build 3 more, that are some 20 blocks apart in the nether. And those only work in one direction. To the nether. And I can't use any portal to come back. For some reason, can use a portal that is like 1000 blocks away from those 3 and the portal 2 (the one I talked at the beginning) in the overworld.
Related issues
Attachments
Comments


Please provide the coordinates of all of the portals along with where they take you and where you expect them to take you. The coordinates should be the location shown at the time the player steps into the portal.

For the Y coordinate, I moved the portals to the same level in the nether.
All the portals take me to the expected nether location when I enter from the overworld. But I can't go back. When I stand in the portal nothing happens.
Also, the coordinates were taken from the same block inside de portal.
Another thing, sometimes when I first build a portal in the overworld, when I stand inside nothing happens. That is part of the reason why I decided to use another portal that did work, to build the portals directly in the Nether.
Portal 1: Overworld (-115, 65, -255)
Expected Nether (-13, 33,-31)
Portal 2: Overworld (-257, 88, -447)
Expected Nether (-33, 56,-56)
Portal 3: Overworld (-252, 66, -310)
Expected Nether (-31, 56,-39)
Portal 4: Overworld (-251, 71, -164)
Expected Nether (-32, 56,-21)

Did some more testing. I can now go in both directions through the portals but:
Portal 1: Overworld (-115, 65, -255)
Expected Nether (-13, 33,-31)
Actual Nether position (-31, 56, -38) Which is the position of Portal 3 in the overworld
Also, there was an old portal I had forgotten which was there when the world was created
Portal 0: Overworld (125, 73, -273)
Nether (15, 84, -34) This was creating automatically, I didn't modify anything.
and I did' a test creating a new portal at a safe distance from the others, and going through it to see where it take me and:
Portal 5: Overworld (40, 64, -63)
Nether (15, 84, -34) The same as Portal 0. So, the game didn't generate a portal in the nether, but it synchronized with one far away.

The Y coordinate difference matters in the calculation.
When you travel from Portal 1 the expected nether location is (-14 65 -31).
Distance to (-13 33 -31) is 32.01. Distance to (-31 56 -38) is 21.66. So the portal in nether at (-31 56 -38) is closer.
Based on this information, this issue is a duplicate of MCPE-39609 and is working as intended.

Okay. Thank you. I will fix that
Although, why is the distance that a portal looks for another one so far away? Is the same in Java?