OGTOOLS

Minecraft /worldborder command

Shrinks or expands the map's playable area and sets what happens at the border.

🌍 World and time Operator (level 2) Needs cheats enabled Java Edition 26.3

Syntax

/worldborder set <distance> [<time>]
/worldborder center <pos>
/worldborder add <distance> [<time>]
/worldborder damage amount <damagePerBlock>
/worldborder warning distance <distance>

Parts in square brackets are optional, parts in angle brackets are required. You do not type the brackets: Put your own value in their place.

Arguments

ArgumentWhat it does
set The side length of the border (in blocks).
[<time>] In ticks (since 1.21.11); a seconds suffix like 300s is the easiest way. The border shrinks slowly over this time.

Examples

/worldborder set 500

Shrinks the map to 500 x 500 blocks.

/worldborder set 100 300s

Brings the border down to 100 blocks over 5 minutes: A battle royale setup.

/worldborder center 0 0

Moves the border's center to the origin.

Good to know

  • A player left outside the border takes damage continuously.
  • An essential command for tournament and minigame maps.

How do I run this command?

Press T in game to open chat (or press / directly), type the command and press Enter. While typing, Tab completes the options. This command counts as a cheat: It needs cheats enabled in a singleplayer world, and operator permission on a server (operator (level 2)).

Related commands

🌍 More World and time

Another tool Minecraft crafting recipes Would rather make the item than give it with a command? See the recipe on the 3x3 grid.

Minecraft is a product of Mojang Studios. This tool is an independent helper made for players and is not affiliated with Mojang or Microsoft.