Chunk

Chunks are the method used by Notch to divide "infinite" maps in the alpha and beta releases. They are 16 blocks wide, 16 blocks long, and 128 blocks deep, which is 32,768 blocks total. When wandering the world the nearest 289 chunks are loaded, arranged in a 17 by 17 grid around the player. These chunks may have activity (mobs spawning, trees growing, water flowing, dropped items disappearing etc.), while the other world chunks are inactive, stored on your hard drive. If a player goes to an area that is beyond the already generated chunks, new chunks are generated and stored to the drive. As of the December 20th update, SMP servers tend to save chunks less often. Chunks will not save again if they were saved in the last 30 seconds.

Slimes can only spawn in specific chunks, determined by a calculation performed on the chunk coordinates. There are a number of utilities and mods which allow the player to tell which chunks they can spawn in; see the Slime article for details.

Creation of Chunks
Chunks are created with the help of the Map-Seed, which means that the chunks are always the same if you would use the same Seed again.

Finding Chunk Edges
Pressing the "F3" button opens the Debug screen which shows the player's X, Y, and Z coordinates. These coordinates will change as the player moves around. X and Z coordinates that are divisible by 16 represent the boundaries between chunks. EG: (96, -32) is a corner where four chunks meet. One of those chunks is between X coordinates 80 to 96 and Z coordinates -48 to -32. Another one is between X coordinates 96 to 112 and Z coordinates -32 to -16, and so on. When either X or Z crosses a multiple of 16, the player is moving across chunks.

Chunk error
A chunk error (also known as a missing chunk, beta hole, world hole, or lag pit) is a common error found most often in multiplayer mode, or more rarely in single player. They are only client side, meaning that other users cannot see the chunk error unless under some very rare circumstances. Reconnecting to the server or reloading the map usually fixes chunk errors. Players can jump or fall into an errored chunk, since some players have reported falling and some have reported warping similar to arrows. Due to the nature of chunk errors, any fluids on the border of the chunk error will look as if they are flowing downwards. On non-modded servers the teleport command can be used to escape such a glitch. Items dropped on an errored chunk WILL fall and cannot be retrieved, however. Also, non-solid blocks can't flow into one. Blocks that are in a chunk error can reappear if you place a block in a chunk error (it gets overwritten, so the block you place gets turned into what was there) or blow it up with TNT.

Players are able to walk into a chunk error,but will only glitch out*1. They are able to ride through them in a boat or minecart - provided there are pre-existing rails. While the track will remain invisible to you, your cart will follow it. If your destination happens to be in a errored chunk, simply re-connect to the server or reload the map*2 upon arrival to avoid falling into the errored chunk and losing your minecart.


 * 1 This may solve the chunk error in some cases, but this is not guaranteed.


 * 2 One way to do this is to force a block update by placing a block or an item, such as a torch. This may solve the chunk error, though it is not guaranteed.

Usage of chunk errors
Errored chunks can occasionally include mountains, in which the mountain is generally cut right down one or more sides. This is useful for finding caves and precious minerals. You should mark the surface in a memorable fashion above any interesting looking veins, caverns, dungeons or structures before re-loading the map.

If you have a buddy on a multiplayer server with a chunk error, they are useful for guiding you from along the sides of a chunk error as they can see where you are digging. This means that your friends can point you to resources they cannot reach because of the chunk error.