HomeJavaModsEndGatewayFix
EndGatewayFix
EndGatewayFix — screenshot 1

Fixes the End gateway generation to be symmetrical.

Technical Explanation
x = floor(diameter * cos(2 * (-pi + toRadians(9) * gatewayNum)));
z = floor(diameter * sin(2 * (-pi + toRadians(9) * gatewayNum))); 
  1. The floor method always rounds down to the nearest integer, which means it will always be offset on any point with a negative decimal that would otherwise be rounded up.

  2. The floating point inaccuracies of pi cause it to be rounded down where it especially shouldn't, such as on a 0 (for example, creating -1 from -0.00000000000001).

Before: An image depicting the 4 end gateways along the center line aligned improperly.

After: An image depicting the 4 end gateways along the center line aligned properly

Quick facts

Install steps are the general flow for this file type — How to install Minecraft Java mods & modpacks walks through it step by step.

Verified by MCModsHub

These come from our own check of the pack file, not from the source page.

Explore more