Commands/worldborder

These commands control the world border.

Syntax
The command has eight variations, each with different arguments:
 * (increases the world border diameter)
 * (recenters the world boundary)
 * (specifies the world border damage rate)
 * (specifies the world border damage buffer distance)
 * (returns the world border diameter)
 * (sets the world border diameter)
 * (specifies the world border warning distance)
 * (specifies the world border warning time)

Arguments

 * distance (, ,   and   modes only)
 * Specifies a distance in blocks:
 * – Specifies the number of blocks to add to the world border diameter.
 * – Specifies the distance outside the world buffer a player must be before they start taking damage. Must be at least 0.0. Initially set to 5.0.
 * – Specifies the new diameter for the world border. Must be between 1.0 and 60,000,000 (inclusive, without the commas).
 * – Specifies the distance from the world border at which players will begin to see a visual warning of the world border's proximity. Must be at least 0. Initially set to 5.


 * time (,  and   modes only)
 * Specifies a time in seconds:
 * – Specifies the number of seconds it should take for the world border to move from its current diameter to the new diameter. Must be at least 0. If not specified, defaults to 0.
 * – Specifies the number of seconds it should take for the world border to move from its current diameter to the new diameter. Must be at least 0. If not specified, defaults to 0.
 * – Specifies the number of seconds that a player will begin to see a visual warning before a moving world border passes their position. Must be at least 0. Initially set to 15.


 * x z ( mode only)
 * Specifies the horizontal coordinates of the world border's center. Must be between -30,000,000 and 30,000,000 (inclusive, without the commas). May use tilde notation to specify coordinates relative to the command's execution.


 * damagePerBlock ( mode only)
 * Specifies the damage a player takes per second per block past the world border buffer. For example, if damagePerBlock is 0.1, a player 5 blocks outside the world border buffer will take 0.5 damage per second (damage less than half a heart might not change the visual health display, but will still accumulate). Must be at least 0.0. Initially set to 0.2.

Result
Fails if the arguments are not specified correctly, or if the new world diameter will be less than 1.0 or greater than 60,000,000.

On success:


 * – The world border begins changing its diameter by the specified amount. If distance is positive, the world border will turn green and start increasing; if negative, the world border will turn red and start decreasing. If time is 0 or unspecified, the change occurs immediately; otherwise the change proceeds at a rate of (distance/2)/time blocks per second.
 * – The center of the world border immediately moves to the specified coordinates.
 * – Sets the world border damage amount to the specified value. Any player outside the world border buffer will take this amount of damage per second per block past the world border buffer distance.
 * – Sets the world border buffer distance to the specified value. Players won't take damage until they move past this distance from the world border.
 * – Shows the current world border diameter in the chat.
 * – The world border begins changing its diameter to the specified value. If distance is bigger than the current diameter, the world border will turn green and start increasing; if smaller, the world border will turn red and start decreasing. If time is 0 or unspecified, the change occurs immediately; otherwise the change proceeds at a rate of ((distance- )/2)/time blocks per second.
 * – Sets the world border warning distance to the specified value.
 * – Sets the world border warning time to the specified value.

History
Befehl/worldborder