I believe the two portals in the overworld have to be under 128 blocks apart total and also should be at least 8 blocks apart horizontally. I just used some simple 3D coodinate math and built the one in the nether at the midpoint.
I believe the two portals in the overworld have to be under 128 blocks apart total and also should be at least 8 blocks apart horizontally. I just used some simple 3D coodinate math and built the one in the nether at the midpoint.
Your method is simpler, and it works great. The problem appears when you’re a bit more specific on where to put the portal in the Nether. For example, in my current world:
Averaging A and B would force me to put the Nether portal around y=(132~140), outside my hub and over the roof. So I had to calculate the coords for B instead, to push it far enough in the X and Z axes to compensate the Y distance. Those inequations did the trick.