EndGatewayFix
No reviews yet
Fixes the alignment in end gateway generation.
General improvements to world generation, such as bug fixes, aesthetic overhauls, or misc additions.
Neoforge is a fork of the Minecraft Forge available for versions 1.20.1+ of Minecraft. Many Forge mods are compatible with Neoforge and vice versa.
Community voices
Reviews
Click once to include, again to exclude, again to clear
No reviews yet. Be the first to review this project!
Get it on
Available Platforms
Compatibility
Supported Environments
About
Project Details
For authors
Embed Badge
If you're the author of this project, you can embed a live badge anywhere that supports HTML or Markdown. It updates automatically whenever ratings change.
Use HTML for any page that supports it, or Markdown for README files and Markdown-based descriptions.
Identifiers
Platform IDs
About
Description
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….
Versions
Files
Relations
Project Relations
More like this
Similar Mods
Suggestions use data such as tags, dependencies, dependents, descriptions, titles, and more to rank how much they overlap with this mod.
On ModDex
Community snapshot
By the numbers
Statistics
Want to reach Minecraft players?
We're looking for a server hosting partner to feature here and other parts of the site. Interested? Send us a message!
Get in touchGet it on
Available Platforms
On ModDex
Community snapshot
By the numbers
