All commands
🟦
Admin

/worldborder

Set how big the playable world border is, optionally over time.

Try in Simulator

At a glance

Syntax

Syntax
/worldborder set <distance> [time]
commandtargetcoordsvaluerequiredoptional

See it

What it does

🧍
The world border closes in

Anatomy

Every part, explained

  1. 1
    /worldborder setCommandRequired

    Sets the border's diameter in blocks.

  2. 2
    <distance>DistanceRequired

    Width of the border in blocks.

  3. 3
    [time]TimeOptional

    Optional seconds to grow or shrink over.

Your turn

Try it yourself

Playground
3 tokens · press Enter to run

Copy & paste

Examples

/worldborder set 1000

Set the border to 1000 blocks wide.

/worldborder set 500 60

Shrink to 500 blocks over 60 seconds.

/worldborder center 0 0

Move the border's center to spawn.

Avoid these

Common mistakes

/worldborder 1000
/worldborder set 1000

Include the 'set' action before the distance.

/worldborder set 1000 64 0
/worldborder center 1000 0

Use 'center' to set a position, 'set' for size.

Keep going

Related commands