EndGatewayFix

EndGatewayFix

Fixes the alignment in end gateway generation.

by
64 Downloads
neoforgeworldgen
Rent Server with this Mod

Screenshots

After
Before

About this Mod

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 floor over the entire equation for two reasons.
  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).

  • This mod fixes this issue by instead opting to use the round method 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….

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

Available Versions

EndGatewayFix 1.0.0release
MC 1.21, 1.21.1, 1.21.2, 1.21.3, 1.21.4, 1.21.5, 1.21.6, 1.21.7, 1.21.8, 1.21.9, 1.21.10, 1.21.11neoforge
December 17, 2025

How to Install EndGatewayFix on Your Server

1

Order Server

Order a Minecraft Java server with at least 4 GB RAM (6 GB recommended).

2

Set neoforge Loader

In the panel under "Egg", select the neoforge loader and matching Minecraft version (1.21.11).

3

Install Mod

Open the mod browser in the dashboard and search for "EndGatewayFix". Click "Install" – done! Alternatively, upload the .jar via SFTP to the /mods folder.

Compatibility

Mod Loaders

neoforge

Minecraft Versions

1.21.11, 1.21.10, 1.21.9 (+9 more)

Server-side

Required

Recommended RAM

6 GB(min. 4 GB)

Frequently Asked Questions

EndGatewayFix server crashes on startup – what to do?

Most common cause: wrong neoforge version or insufficient RAM. Check the server log (latest.log) for "OutOfMemoryError" or "Mixin" errors. With Mado Hosting: ensure at least 4 GB RAM is allocated and the loader matches the mod version (1.21.11). You can switch loaders with one click in the panel.

Is EndGatewayFix compatible with neoforge?

EndGatewayFix officially supports neoforge for Minecraft 1.21.11, 1.21.10, 1.21.9. The Mado dashboard automatically detects incompatible loader combinations.

Server lagging with EndGatewayFix – how to optimize performance?

Recommended RAM: 6 GB (per 5 players). Use /spark profiler to check if EndGatewayFix consumes the most tick time. Common fixes: reduce server view-distance to 8-10, install "performant" or "starlight" as supplementary mods on Forge. With Mado Hosting, your server runs on NVMe SSDs with dedicated CPU cores for minimal latency.

Rent Modded Server

Install EndGatewayFix with just one click on your server.

Recommended RAM
6 GBab €12/mo
Min. 4 GB | +1 GB pro 5 Spieler
Create Server Now
1-Click Mod Install
NVMe SSD Storage
DDoS Protection included

Details

License
MIT License
Server-side
Required

Supported Versions

1.21.111.21.101.21.91.21.81.21.71.21.61.21.51.21.41.21.31.21.2+2 more