

Fixes the End gateway generation to be symmetrical.
Technical Explanation- Whenever you kill the ender dragon and a gateway spawns, a chunk of code is run that roughly looks like this:
x = floor(diameter * cos(2 * (-pi + toRadians(9) * gatewayNum)));
z = floor(diameter * sin(2 * (-pi + toRadians(9) * gatewayNum)));
- The issue lies in using
floorover the entire equation for two reasons.
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.
The floating point inaccuracies of
picause it to be rounded down where it especially shouldn't, such as on a 0 (for example, creating -1 from -0.00000000000001).
- This mod fixes this issue by instead opting to use the
roundmethod from the built-in Java Math class, which just rounds down when a number is 0.0 to 0.499…, and up when its 0.5 to 0.99….
Quick facts
- Edition: Minecraft Java
- File type: .jar
- Minecraft versions listed: 1.21, 1.21.1, 1.21.2
- How to install: Install the matching mod loader (Forge, Fabric or NeoForge) for your Minecraft version. → Download the .jar. → Put it in the .minecraft/mods folder and launch that loader profile.
- Where to get it: Opens on Modrinth — not every file is mirrored on our own servers.
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
- Ships as endgatewayfix-1.0.0.jar — drop this file into the mods folder
- Download size: 5 KB
- Download link checked 21 Aug 2026 — working
These come from our own check of the pack file, not from the source page.

