All commands
๐ŸŸฆ
AdminJava โœ“Bedrock -

/worldborder

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

๐ŸชจThis command is Java Edition only - Bedrock has no direct equivalent.

Overview

What is the /worldborder command?

The /worldborder command sets and animates the playable boundary of the world. You can set its diameter, shrink or grow it over time, move its centre, and configure the warning distance and the damage players take outside it.

It's central to survival challenges and shrinking-border minigames, and also a practical way to cap world size on a server.

When to use it: Use /worldborder to limit how far players can travel, or to run a shrinking-border survival challenge.

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.

Good to know

Frequently asked questions

How do you set the world border size?
Run /worldborder set <blocks>, e.g. /worldborder set 1000 for a 1000-block-wide border centred on 0,0.
How do you make the border shrink over time?
Add a time in seconds: /worldborder set 100 600 shrinks (or grows) to 100 blocks over 600 seconds.
How do you move the border's centre?
Use /worldborder center <x> <z> to recentre the border on a new location.

Keep going

Related commands