Mojira Archive
MC-159283

The End terrain does not generate in multiple rings centered around the world center

The bug

The End generation is broken at long distances since 18w46a.

In the End, the terrain stops generating and then generates again from a certain distance from the center of the End, according to a ring pattern.

This donut-shaped pattern repeats over and over to the edge of the world on a regular basis, starting at 370,720 blocks from the center of the End.

How to reproduce

Use the following commands to teleport you:

/execute in minecraft:the_end run tp @s 370720 90 0
/execute in minecraft:the_end run tp @s 21007528 90 0
/execute in minecraft:the_end run tp @s 21010807 90 0
/execute in minecraft:the_end run tp @s 21377192 90 0
/execute in minecraft:the_end run tp @s 21380415 90 0

Examples



Code analysis

The code is trying to process numbers that are much larger than what Minecraft is actually capable of for its world terrain noise which causes part of the terrain noise to generate numbers that ultimatly get read as NaN (Not a Number) and causes the terrain generation to fail outright.

For more information and a possible fix, see this comment from Samū.

Source

Here is the source used to complete this ticket (examples, code analysis, visualization of what's going on...): https://youtu.be/91Feq0dHw28
Video by AntVenom.