Follow US:

Practice English Speaking&Listening with: WHAT CAUSED the MINECRAFT FAR LANDS to HAPPEN?!

Difficulty: 0

In an early version of Minecraft, known as 'InfDev', the game that we know today began to take shape.

Infinite worlds were introduced for the first time, hence 'Inf' in 'InfDev'.

And modern looking terrain was added to the game.

So naturally, to claim that the game was infinite raises some questions...

'How infinite is 'infinite' in Minecraft?'

What was found was the Far Lands, which generate 12,550,824 blocks away from the center of the map.

But why does this happen? Why is it this number and not 2.147 billion, which is the limit for 32-bit numbers?

Well, today, we're going to check it out. But note that I didn't study the precise math that goes into this.

I generally understand it, but if I do get some information slightly wrong or if I do oversimplify things, I am sorry.

But any and all discussion on the matter is welcome in the comments section down below.

So let's get to why the original Minecraft Far Lands happened in the first place.

In the original versions of Minecraft, all the way up until Beta 1.7.3, a simple bug existed within Minecraft that allowed for this kind of terrain to spawn.

My original video showing it off from 2011 can be found on the top right of the screen.

And while I'm no expert for the math that goes into this, I wanted to do my absolute best to understand and explain why the Far Lands happened.

I've had an interest in game-breaking bugs for as long as I've been playing games, so naturally, even if the math that goes into it isn't my strong suit...

...I wanted to understand it. So let's get into it.

When Minecraft generates it's terrain, it's generated using multiple octaves of what is known as '3D Perlin noise'.

To visualise this, think about the Clouds effect in Photoshop. It kinda makes sense.

If you thought about Minecraft's terrain as a height map and looked it from the top down, it'll make more sense where some colours are higher up on the map...

...and the other colours are LOWER on the map.

So you may be wondering, well, why doesn't the Far Lands generate at the 32-bit limit of 2.147 billion?

Why at this seemingly arbitrary number of 12,550,824?

It has to do with how precise the noise map itself is.

For some of the noise map math, rather than each pixel or unit of this noise map representing one Minecraft block...

...every 171.103 units represent an in-game block.

Why it's like this, I'm not entirely sure, but I'd guess it's so that the terrain isn't generated to be incredibly smooth, but I could be INCREDIBLY off with that.

But no matter the specific reason, this noise unit number that I mentioned before also increases by 171.103 per Minecraft block.

And it fails when it hits the 32-bit integer limit of 2.147 billion.

So, if you take that 32-bit integer limit, and divide it by 171.103 (as mentioned before), the point in Minecraft where the equation falls apart is 12,550,824 blocks...

...which is exactly where the Far Lands starts.

There's a little more that goes into this that also allows the Far Lands to generate about three blocks closer or so, but ultimately for the sake of this video, it doesn't matter too much, but it has to do with how certain numbers are rounded off as you get that far out.

And when you venture over 32 million blocks out and you are well into the Far Lands, Minecraft no longer generates solid blocks AT ALL, due to Java itself not being able to understand numbers that big or something, I'm not overly sure...

...but that's part of the reason why the limit in modern Minecraft is 30 million blocks.

Though Minecraft will still force chunks to generate this far out in older versions of Minecraft, they weren't solid.

And that, at least in an oversimplified manner, is how the Far Lands happened.

If I had to guess what happens with the terrain generation at this point... some internal division of numbers within the noise generator fails because the game can't understand numbers past the 32-bit integer limit...

...of 2.147 billion, leading to height scaling that is far above what would normally happen.

I tried to find a link on this, but I read up somewhere that if Minecraft had absolutely no height ceiling at all, the Far Lands would be able to generate somewhere in the neighbourhood of six to seven THOUSAND blocks up before they would eventually stop.

I'd love to see a mod that could do that, no matter how laggy it would be.

And I know mods had existed before that allowed maps to go up to 2048 blocks, so SOMEONE GET ON THAT!

And if you're wondering how this whole issue was fixed, instructions were added to the terrain generation math that prevented these numbers from overflowing.

If you check out the Reddit thread in the description, you can actually remove these instructions within the game and restore the Far Lands to their original glory.

So... yeah.

I know this video is vastly different from the ones I've been putting out lately.

There's a lot more math that goes into all of this, but I'm not particularly great with it...

...nor do I think you guys would want an exclusively math-based video.

So I figured this landed somewhere inbetween, and I hope you did enjoy it, and if you did...

...please consider leaving a like on the video.

It helps out a lot more than you might actually think.

But anyways, guys, I hope you have all enjoyed. My name is AntVenom and I bid you all farewell.

Thanks so much for watching.