Uploaded January 2015 | Updated November 2026, 2 days ago
Isn't that mesa beautiful?
3840x2400 image: imgur.com/wtlQ1jw
Reddit thread with instructions: reddit.com/r/Minecraft/comments/2su65c/i_resurrected_the_far_lands_in_181
I’m not able to edit that post anymore. Links for 1.20.4:
1.20 Far Lands.json: drive.google.com/file/d/1-L_Qou7_PczRfhRwq67XRURUriBoLKxu/view
edv.class: drive.google.com/file/d/1-KTSoJh74Zr3LVgYujCAp3GIQlU4M3jH/view
******************
Minecraft generates its base terrain using fractal noise. It uses 16 noise generators, each working on a level twice as large as the former, making octaves.
Each generator generates a grid of points, repeating every 256 units, between which it will interpolate. It takes floating-point coordinates as input. It separates those into 32-bit integer and fraction parts. Those are then used to find the right grid points and interpolate between them.
The bug is that the integer will overflow. Why, you ask, when the Far Lands start at not even 13 million blocks, and signed 32-bit integers can easily represent numbers over 2 billion? The reason is that several octaves represent scales smaller than a block. It's basically going to waste because blocks don't have enough resolution and the amplitude is too small to matter as well. I think that has to do with Notch's trial-and-error programming style; he often just messes with things until they work without fully understanding them. The smallest scale is as small as 1/171.103 of a block. Do the math: 2^31/171.103=12550824.053, which is indeed where the Far Lands appear.
What exactly happens with that overflow? The way Minecraft deals with things, a number like 2147483700.4 becomes 2147483647 with a fraction of 53.4. Every block increases the fraction by 171.103. -2147483700.4 becomes 2147483647 with a fraction of -4294967347.4, which is ridiculous indeed. Mind you, the fraction is supposed to be between 0 and 1 and only makes sense there.
As if that isn't enough, the noise generator uses quintic interpolation, roughly raising the fraction to the fifth power (polynomials blow up when you use them to extrapolate). Because these numbers are so mind-blowingly large, they overrule all other terms and the bias that normally ensures there's sky above and ground below, producing this shapeless mess.
Also note that the integer part is always 2147483647. That's the reason you get these tunnels or even the stack in the corners. There are still some differences due to other noise maps, but those can't quell the striking structure.
It was eventually fixed by taking the remainder of the coordinates divided by 16777216, before passing them to each noise generator. The noise repeats every 256 units anyway, so it doesn't really make a difference except in avoiding this overflow. This is also why I believe this fix was deliberate, not an accidental result of an overhaul as supposed! It's just this one isolated change that can still be reverted in current versions.
Where did 171.103 come from? The constant in the code is actually 684.412. In the new customized world type it's called the coordinate scale. Terrain is generated at a resolution of four blocks and interpolated, so you divide it by four to get noise units per block. By adjusting this value you can move the point where the Far Lands appear. You may have noticed that the height scale is 684.412 as well. It would indeed create a sort of Far Sky if Minecraft generated blocks all the way up there. Unfortunately Minecraft won't let you set a height scale over 6000 and even refuses if you hack your level.dat, so you can't make that generate within the height limit.
Isn't that mesa beautiful?
3840x2400 image: imgur.com/wtlQ1jw
Reddit thread with instructions: reddit.com/r/Minecraft/comments/2su65c/i_resurrected_the_far_lands_in_181
I’m not able to edit that post anymore. Links for 1.20.4:
1.20 Far Lands.json: drive.google.com/file/d/1-L_Qou7_PczRfhRwq67XRURUriBoLKxu/view
edv.class: drive.google.com/file/d/1-KTSoJh74Zr3LVgYujCAp3GIQlU4M3jH/view
******************
Minecraft generates its base terrain using fractal noise. It uses 16 noise generators, each working on a level twice as large as the former, making octaves.
Each generator generates a grid of points, repeating every 256 units, between which it will interpolate. It takes floating-point coordinates as input. It separates those into 32-bit integer and fraction parts. Those are then used to find the right grid points and interpolate between them.
The bug is that the integer will overflow. Why, you ask, when the Far Lands start at not even 13 million blocks, and signed 32-bit integers can easily represent numbers over 2 billion? The reason is that several octaves represent scales smaller than a block. It's basically going to waste because blocks don't have enough resolution and the amplitude is too small to matter as well. I think that has to do with Notch's trial-and-error programming style; he often just messes with things until they work without fully understanding them. The smallest scale is as small as 1/171.103 of a block. Do the math: 2^31/171.103=12550824.053, which is indeed where the Far Lands appear.
What exactly happens with that overflow? The way Minecraft deals with things, a number like 2147483700.4 becomes 2147483647 with a fraction of 53.4. Every block increases the fraction by 171.103. -2147483700.4 becomes 2147483647 with a fraction of -4294967347.4, which is ridiculous indeed. Mind you, the fraction is supposed to be between 0 and 1 and only makes sense there.
As if that isn't enough, the noise generator uses quintic interpolation, roughly raising the fraction to the fifth power (polynomials blow up when you use them to extrapolate). Because these numbers are so mind-blowingly large, they overrule all other terms and the bias that normally ensures there's sky above and ground below, producing this shapeless mess.
Also note that the integer part is always 2147483647. That's the reason you get these tunnels or even the stack in the corners. There are still some differences due to other noise maps, but those can't quell the striking structure.
It was eventually fixed by taking the remainder of the coordinates divided by 16777216, before passing them to each noise generator. The noise repeats every 256 units anyway, so it doesn't really make a difference except in avoiding this overflow. This is also why I believe this fix was deliberate, not an accidental result of an overhaul as supposed! It's just this one isolated change that can still be reverted in current versions.
Where did 171.103 come from? The constant in the code is actually 684.412. In the new customized world type it's called the coordinate scale. Terrain is generated at a resolution of four blocks and interpolated, so you divide it by four to get noise units per block. By adjusting this value you can move the point where the Far Lands appear. You may have noticed that the height scale is 684.412 as well. It would indeed create a sort of Far Sky if Minecraft generated blocks all the way up there. Unfortunately Minecraft won't let you set a height scale over 6000 and even refuses if you hack your level.dat, so you can't make that generate within the height limit.


