WorldJava

/worldborder

Controls the square world border: its center, diameter (instant or interpolated over time), warning distance/time, and the damage applied to players outside it. The border blocks movement and can be shrunk gradually for shrinking-map games.

What is /worldborder used for?

What /worldborder is for

Controls the square world border — its center, size, warning distance, and the damage dealt to players who stray outside it.

When to use /worldborder

Cap the explorable area on a server, or run a shrinking-border game where the playable zone closes in over time.

Tips for /worldborder

/worldborder set <size> <seconds> interpolates smoothly to the new size — perfect for a closing border. Re-center it with /worldborder center before resizing.

Syntax

Alternate forms:

Parameters

action
literal
add / center / damage / get / set / warning.
distanceoptional
float
Border diameter in blocks (for set/add).
timeoptional
integer
Seconds to interpolate to the new size.

Command builder

Fill in the options below to generate a ready-to-paste /worldborder command.

add / center / damage / get / set / warning.

optional

Border diameter in blocks (for set/add).

optional

Seconds to interpolate to the new size.

Examples

  • Set the border to a 500-block diameter instantly.

  • Shrink the border to 100 blocks over 60 seconds.

  • Re-center the border on the origin.

Common questions

How do I make a shrinking world border?

Use /worldborder set <size> <seconds> — it smoothly shrinks to the new size over that time, perfect for shrinking-map games.

How do I reset the world border?

Run /worldborder set 60000000 (the default size) and /worldborder center 0 0 to recenter it on the origin.

Permission level

/worldborder requires Cheats (op level 2). In single-player you need the world's "Allow Cheats" toggle on. On a multiplayer server you need to be opped — see /op.