News
Game
Guides
Downloads
Versions
/worldborder
COMMANDS WORLD & RULES CHEATS · LEVEL 2 6 SUBCOMMANDS Added in 1.14 or earlier

/worldborder command in Minecraft

The /worldborder command controls the world border: its width, its center, how fast it grows or shrinks, the damage it deals and the warning players get. Use it to limit a survival world, build a shrinking arena or keep a map inside a fixed area.

Syntax

/worldborder add <distance> [<time>]
/worldborder center <pos>
/worldborder damage (amount|buffer)
/worldborder get
/worldborder set <distance> [<time>]
/worldborder warning (distance|time)
All 10 forms
  • /worldborder add <distance>
  • /worldborder add <distance> <time>
  • /worldborder center <pos>
  • /worldborder damage amount <damagePerBlock>
  • /worldborder damage buffer <distance>
  • /worldborder get
  • /worldborder set <distance>
  • /worldborder set <distance> <time>
  • /worldborder warning distance <distance>
  • /worldborder warning time <time>
/worldborder add
/worldborder add <distance> [<time>]
ArgumentExpectsWhat it does
distanceNumberBlocks added to the current width; a negative value shrinks the border.
timeoptionalDuration (ticks, or 10s, 2d)at least 0Duration of the change. A plain number counts ticks: write 60s for one minute. Without it, the change is instant.
All 2 forms
  • /worldborder add <distance>
  • /worldborder add <distance> <time>
/worldborder center
/worldborder center <pos>
ArgumentExpectsWhat it does
posPosition (x z)Center of the border as X Z, e.g. 0 0, or ~ ~ for your own position.
/worldborder damage
/worldborder damage (amount|buffer)
ArgumentExpectsWhat it does
damagePerBlockNumberat least 0Damage per second for each block a player is beyond the buffer zone, e.g. 0.2 or 1.
distanceNumberat least 0Buffer zone in blocks beyond the border where players take no damage yet. Default 5.
All 2 forms
  • /worldborder damage amount <damagePerBlock>
  • /worldborder damage buffer <distance>
/worldborder get
/worldborder get
/worldborder set
/worldborder set <distance> [<time>]
ArgumentExpectsWhat it does
distanceNumberNew total width in blocks, edge to edge, from 1 to 59,999,968. 1000 makes a 1000 by 1000 square.
timeoptionalDuration (ticks, or 10s, 2d)at least 0Duration of the change. A plain number counts ticks: write 60s for one minute. Without it, the change is instant.
All 2 forms
  • /worldborder set <distance>
  • /worldborder set <distance> <time>
/worldborder warning
/worldborder warning (distance|time)
ArgumentExpectsWhat it does
distanceWhole numberat least 0Distance in blocks from the border at which the screen of a player turns red.
timeDuration (ticks, or 10s, 2d)at least 0How long before a moving border reaches a player the warning starts, e.g. 15s.
All 2 forms
  • /worldborder warning distance <distance>
  • /worldborder warning time <time>

Examples

A world 1000 blocks wide

/worldborder set 1000

The border becomes a 1000 by 1000 square, 500 blocks on each side of the center.

Java 26.3

Center the border on yourself

/worldborder center ~ ~

Moves the center to your X and Z. The width stays the same.

Java 26.3

Shrink to 100 blocks in 5 minutes

/worldborder set 100 300s

The classic shrinking arena: the border moves slowly toward the center.

Java 26.3

Grow the border over a minute

/worldborder add 200 60s

Adds 200 blocks to the current width, 100 on each side, in one minute.

Java 26.3

Make the border hurt more

/worldborder damage amount 1

Players beyond the buffer lose 1 health per second for each block outside.

Java 26.3

Warn players earlier

/worldborder warning distance 20

The screen turns red 20 blocks before the border.

Java 26.3

Check the current size

/worldborder get

Answers "The world border is currently ... block(s) wide".

Java 26.3
Build your command

Fill in the fields, then copy the command.

Command generator

Size, center and movement

The border is a square. set takes the full width, so /worldborder set 1000 means 500 blocks on each side of the center. The largest width is 59,999,968 blocks, the default size of a new world, and the smallest is 1. A border that moves over time is the classic shrinking arena. Add s to the duration, because a plain number is read as ticks.

Changing the size does not move the center. Set the center first with center, then the width.

Damage and warnings

Outside the border, players start taking damage after a buffer zone of 5 blocks, 0.2 per block and per second by default. damage buffer and damage amount change these two values. warning distance and warning time control when the screen turns red.

Common errors

  • "Nothing changed. The world border is already that size": the width is already the one you typed.
  • "World border cannot be bigger than ... blocks wide": the value is above the maximum.
  • A border set to 100 with the time 60 shrinks in three seconds: 60 is read as ticks.

For a battle royale, combine it with /spreadplayers to scatter players inside the border and /title to announce each shrink.

✓ Checked in Java Edition 26.3 · updated 2 November 2026

/worldborder: FAQ

Is the world border width a radius?

No. The value is the full width from one edge to the other. A border of 1000 reaches 500 blocks from the center in each direction.

How do I remove the world border?

Set it back to the maximum with /worldborder set 59999968. That is the default size of a new world.

How do I use /worldborder?

Type it in the chat with cheats on: /worldborder add <distance> [<time>].

Who can use /worldborder?

Cheats on, or operator level 2.

Related commands