The commands
Run these in the console or as an operator:
- worldborder center 0 0: centre the border, usually on spawn
- worldborder set 10000: make it 10,000 blocks wide, that is 5,000 in each direction
- worldborder add 2000 3600: grow it by 2,000 blocks over an hour, useful for events
- worldborder get: show the current size
Size is a diameter
worldborder set takes the full width of the border, not the radius. A border of 10000 lets players go 5,000 blocks from the centre. Chunky radius, by contrast, is from the centre. Mixing the two up is the most common mistake.
The Nether and End
On Paper and Purpur each dimension is a separate world with its own border, so run the commands in each. Because one block in the Nether equals eight in the Overworld, a Nether border one eighth the size of the Overworld border keeps portals lined up with the playable area.
Pairing the border with pre-generation
Set the border, then pre-generate everything inside it with Chunky. Players explore without generation lag, and the world never grows beyond a predictable size.