How to Set a World Border on Your Minecraft Server

Learn how to set a world border to limit exploration and improve server performance.

A world border restricts how far players can travel in your world. This is useful for keeping players in a defined area, reducing server load from chunk generation, and creating unique gameplay experiences.

Setting a World Border

Open the Console

Access the XGamingServer panel and go to Console.

Set the border center

worldborder center 0 0

Replace 0 0 with the X and Z coordinates for the center of your border.

Set the border size

worldborder set 10000

This sets the border diameter to 10,000 blocks (5,000 blocks from center in each direction).

World Border Commands

CommandDescription
/worldborder center [x] [z]Set the center point
/worldborder set [diameter]Set the border size instantly
/worldborder set [diameter] [seconds]Gradually change size over time
/worldborder add [blocks] [seconds]Expand the border
/worldborder warning distance [blocks]Red warning distance from edge
/worldborder warning time [seconds]Warning time when border is shrinking
/worldborder damage amount [dps]Damage per block outside border
/worldborder damage buffer [blocks]Safe zone outside border before damage
/worldborder getShow current border size

💡 Tip: After setting a border, use Chunky to pre-generate all chunks within the border. This eliminates lag from terrain generation during gameplay.

📝 Note: The world border is per-world. If you have a Nether or End dimension, you may want to set borders there too (Nether border should be 1/8 the Overworld size).

Shrinking Border (Hunger Games Style)

To gradually shrink the border for events:

worldborder set 100 3600

This shrinks the border to 100 blocks over 3,600 seconds (1 hour).

See also: Pre-generate Chunks | Performance Guide

If you need help, join our Discord.

How is this guide?

40% Off — Limited TimeGet your Minecraft server todayInstant setup, DDoS protection, and 24/7 support included.
Get a Server

On this page