Commands/worldborder

These commands control the world border.
==Syntax==
worldborder add <distance> [<time>]
: Increases or decreases the world border diameter.
worldborder center <pos>
: Recenters the world boundary.
worldborder damage amount <damagePerBlock>
: Sets the world border damage amount to the specified value. Any player outside the world border buffer takes this amount of damage per second per block past the world border buffer distance.
worldborder damage 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.
worldborder get
: Returns the current world border diameter.
worldborder set <distance> [<time>]
: Sets the world border diameter.
worldborder warning distance <distance>
: Sets the world border warning distance to the specified value.
worldborder warning time <time>
: Sets the world border warning time to the specified value.
==Arguments==
 (in add mode)
: Specifies the number of blocks to add to the world border diameter.
: 
 (in add and set mode)
: Specifies the number of seconds it should take for the world border to move from its current diameter to the new diameter. If not specified, defaults to 0.
: 
: Specifies the horizontal coordinates of the world border's center.
: And it's X and Z should be between ±29999984 (inclusive).
: 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 takes 0.5 damage per second (damage less than half a heart might not change the visual health display, but still accumulates). Initially set to 0.2.
: 
 (in damage buffer mode)
: Specifies the distance outside the world buffer a player must be before they start taking damage. Initially set to 5.0.
: 
 (in set mode)
: Specifies the new diameter for the world border.
: 
 (in warning distance mode)
: Specifies the distance from the world border at which players begins to see a visual warning of the world border's proximity. Initially set to 5.
: 
 (in warning time mode)
: Specifies the number of seconds that a player begins to see a visual warning before a moving world border passes their position. Initially set to 15.
: 
==Result==
== Output ==
==Notes==
In add or set mode, if successful, the world border begins changing its diameter by the specified amount. If diameter is increasing, the world border turns green; if decreasing, the world border turns red. If <time> is 0 or unspecified, the change occurs immediately; otherwise the change proceeds at a rate of (Distance difference/2)/time blocks per second.
In center mode, if successful, the center of the world border immediately moves to the specified coordinates.
== History ==
de:Befehl/worldborder
es:Comandos/worldborder
ja:コマンド/worldborder
zh:命令/worldborder