World border

The world border is the edge of the world. Without commands, it is at 30 million blocks in every direction from the origin. However, with commands, it can be made smaller.

The world border appears as many diagonal light blue lines alternating with clear lines. If the border is expanding, the lines are green, and if the border is shrinking, the lines are red.

Effects

 * Mobs and players cannot move outside the world border.
 * Mobs and players cannot move more than a block if they are already outside the world border, except for players in spectator mode. This is exactly like what would happen if the player was in solid stone, except for visibility.
 * Shot arrows, thrown snowballs, thrown eggs, and thrown ender pearls can still pass through the border, but item entities and fishing rod lines cannot.
 * Mobs and players suffocate as if they were in a solid block if they are outside the world border.
 * If an ender pearl is thrown to an area outside of the border, the player is teleported and will die of suffocation.
 * Light is not affected by the world border.
 * Players cannot place and destroy blocks and interact with objects outside the world border.
 * If a dispenser or dropper is placed so its "face" is right up against the edge of the border, items, projectiles, TNT, etc. can be fired from the dispenser/dropper outside of the edge of the border. Because of this, it's possible to create a TNT cannon that fires TNT onto an area beyond the border.
 * Falling sand and gravel will become item entities.
 * Explosions, pistons, water and lava work normally outside of the border and can alter terrain as they normally do. Yet, sticky pistons and slime blocks can't be used to retrieve blocks outside of the border.
 * Water and lava can flow out of the border, even if the source block is inside it.

Commands
To change where the world border is, there are two commands:
 * sets the center of the area inside the world border. "x" and "z" are the x and z coordinates. "~" (tilde) can be used as a relative coordinate.
 * sets the border to a square region with the specified diameter and the center in the previous command. If "time" is specified, the border grows or shrinks over the specified number of seconds. If "time" is not specified, the world border changes immediately. To remove the world border, set "diameter" to 60000000 (60 million).
 * adds or removes the border to a square region with the specified diameter.

Other commands change features of the world border.
 * causes players to take damage every second equal to the amount specified times the number of blocks you are outside the world border. The default is 0.2 damage per second per block.
 * changes the number of blocks you have to be away from the border to take damage. The default is 5 blocks.
 * changes how many blocks away you have to be to the world border for the screen to have a red tint. The default is 5 blocks.
 * is like the above command, but is used when the border is shrinking, and is specified is seconds. The default is 15 seconds.

History
See World boundary for all the different effects of the world boundary prior to the introduction of the world border.

Trivia

 * The effect of the world border is always in full block increments, even if it looks like it is between blocks.
 * Even though the lines don't show above y=256, the border is still effective.
 * With the command to change the border over time, the border will still grow or shrink even if the game is paused. The animation also happens even if the game is paused.
 * In the Nether and the End, the world border's dimensions are the same as the Overworld's.
 * The "shimmery" texture was made by Ryan Holtz.