-1
\$\begingroup\$

Before Minecraft Beta 1.8, when you reached about x:3000000 y:3000000, the terrain generator would freak out and begin generating broken scary land. What went on in the MC code to provoke this? Why didn't it just completely stop generating? Why does the game still break at locations very far from spawn? What is the cause of this game breaking bug?

\$\endgroup\$
4
  • 4
    \$\begingroup\$ Notch wrote about this himself in Terrain generation, Part 1. He wasn't actually aware of what caused it, and according to the Minecraft Wiki page on the Far Lands the fix was entirely by accident. \$\endgroup\$ Sep 18, 2012 at 4:54
  • 1
    \$\begingroup\$ Is this more than just a trivia question? Or are you experiencing/trying to avoid something similar with your terrain generation code? \$\endgroup\$
    – House
    Sep 18, 2012 at 5:01
  • \$\begingroup\$ @JonathanHobbs, your comment is the answer, you could post it as an answer and get upvote for it. \$\endgroup\$
    – AaA
    Sep 18, 2012 at 9:27
  • \$\begingroup\$ @BobSort No it isn't. I was just saying Notch doesn't know, which isn't answering what happens. Someone else might've dug into the code and found out exactly what was happening. \$\endgroup\$ Sep 18, 2012 at 10:07

1 Answer 1

3
\$\begingroup\$

Why does the game still break at locations very far from spawn?

Everything has a limit, especially the numbers on a computer. Assuming he uses floating point numbers in most places, the precision at that point would be very low. My calculations say that it's about 0.25: http://ideone.com/xD7Tm

the terrain generator would freak out and begin generating broken scary land

My guess is that position properties were added in the seed value, making it break a lot of calculations along the way.

\$\endgroup\$

Not the answer you're looking for? Browse other questions tagged .