Minecraft sun, how? [closed]

Solution 1:

From a lore perspective: this is a world of spells, monsters, alternate dimensions and dragons. You could say that the sun is a "protective spell" that stops the bad monsters from coming.

However, that's purely speculation. There is actually no "lore" in this game, other than the "End Credits", after you defeat the Ender Dragon and jump back through the portal.


Realistically however; this is just a video game. What they are referring to when they talk about the world being "infinite" is that the game is programmed to generate the world by what is called using an infinite loop.

An infinite loop (sometimes called an endless loop ) is a piece of coding that lacks a functional exit so that it repeats indefinitely. In computer programming, a loop is a sequence of instruction s that is continually repeated until a certain condition is reached. […] If the presence of the specified condition cannot be ascertained, the next instruction in the sequence tells the program to return to the first instruction and repeat the sequence, which typically goes on until the program terminates automatically after a certain duration of time, or the operating system terminates the program with an error.

In Minecraft, this is what happens when it generates the world, but to stop the program from crashing (or blowing up your computer), is to limit this to a maximum size of the map.

While the world is virtually infinite, the number of blocks a player may physically reach is limited. Where the limits are depends on the edition of the game and the world type being played.

And ultimately, the actual "night" and "day" cycles are simply a timed mechanic that allow the game to be more interesting, and don't actually follow any laws of physics.