World boundary



The world boundary is the area at the edge of the Minecraft world.

Definition
The boundary of the world has several "layers".

The first layer is the world border, which lies at X/Z ±29,999,984 by default, and establishes an arbitrary blockade to prevent players who are not in Creative or Spectator modes from advancing. There are several methods of bypassing this border.

The second layer lies exactly one chunk further, at X/Z ±30,000,000. At this point, there is a solid invisible wall through which the player can single-handedly advance no further, even in Spectator mode. Using commands such as will not work, since ±30,000,000 is the highest allowed integer. However, by using a minecart (in a superflat preset in which the top layer is rails), the player can reach even further, up to ±X/Z 30,000,192; at that point, the player is frozen in place until the minecart is killed, and then the player will be teleported back to the ±30,000,000 mark.

The third and final layer lies at X/Z ±30,000,192, which can be considered the "true" edge of the Minecraft world, as chunks will no longer render beyond this point, and any attempts to advance beyond are completely impossible, even with external programs.

The maximum possible Y-distance is 1.797x10308, the limit where mathematics break down in the game's code. If the player attempts to teleport beyond this limit, the game will disconnect the player with an "Invalid move packet received" client error. The only way to fix this is by moving a player back with an external program.

Effects
Generally, long server response times caused by massive distances will produce unintended results, but most blocks and entities will behave normally, with a few exceptions:


 * Gravity-affected blocks (such as and ), while falling, will jitter in bizarre patterns for several seconds, but will ultimately land on the ground as normal.
 * and will fall normally, albeit at a much slower pace due to long response times.
 * Extended s may sometimes not render until they receive another block update.
 * Flame and smoke particles from certain blocks, like s and s, only appear on the side facing away from the edge.
 * Flame particles will still appear around the entire mob spawner block as a mob is spawning.
 * Beyond the X/Z 30,000,000 mark:
 * Mobs will not spawn at all.
 * Lighting does not update (with exception to sunlight and moonlight).
 * Items may jitter slightly.

Beyond this, most of the unintended behavior of blocks and entities is caused by the world border (as detailed here), rather than the massive distances of the boundary itself.

Trivia

 * Traveling from one edge of the world to the opposite edge by powered rail would take 35 days and 10 hours. Building the rails for such a trip would require enough iron and/or gold to fill over  723 double chests even when packed into blocks, as well as sticks made from enough wood to fill over  135 double chests (as log blocks, not as wood planks, and excluding the redstone torches). ( 53 stacks of logs would be required just to make enough chests to hold all the building materials for this rail track.) If already crafted, the rails required would fill  17,361 double chests. If you had to gather the materials to make all those rails, you'd wear out  14,404 diamond pickaxes and  300 diamond axes (on average, about  3,601 diamond pickaxes and   75 diamond axes, both enchanted with Unbreaking 3).
 * There's also the obvious fact that even if one were to amass all these materials, actually laying said track would require the player to travel the entire distance through other means anyway. As such, while this may be the fastest method, it is impossible unless you have already been there at least once.
 * Then there's the obvious fact that you need redstone torches. A torch can optimally light 17 blocks, so 3,529,412 torches are required. That requires 55,148 sticks/redstone dusts, which requires 2042 large chests, which requires 128 stacks of log blocks to make the chests (which requires 3 large chests!).

Effects prior to 1.8
世界界限