> ## Knowledge Base Index
> Fetch the complete knowledge base index at: https://help.sparkedhost.com/sitemap.xml
> Use this file to discover available pages before exploring further.
> Pure-Markdown content can be obtained by appending a '.md' suffix to the content URLs listed in the sitemap (without the trailing slash).

# How to Add a World Border in Minecraft Server

Unlike Bedrock Edition servers, you don't need plugins to set the world border feature in your Minecraft Java Edition server. It is a simple yet powerful way to optimize your server for performance by limiting chunk loading. It helps guide player exploration, reduces lag, keeps adventures focused, and gives a new gameplay experience. Limiting how far players can travel can create a more manageable Minecraft world.

In this guide, we'll show you how to add a world border in Minecraft server and help you manage your world boundaries effectively.

Don't already host with us? 10,000+ server owners trust Sparked Host for lag-free Minecraft worlds. [Claim your server savings](https://sparkedhost.com/minecraft-server-hosting?utm_source=referral&utm_medium=knowledge_base&utm_campaign=kb_redirect&utm_content=intro) to get higher performance at less $ per month.

## Method 1: Using Commands

|| The following commands can be used on your console and in-game. If used in-game, add a / before typing the commands, and make sure to [have OP on the Minecraft server](https://help.sparkedhost.com/en/article/how-to-op-someone-on-a-minecraft-server-1segita/) to use them.

To add a world border in a Minecraft server, use the following commands:

Open your [Apollo Panel](https://control.sparkedhost.us/)

* Type `worldborder center <X> <Z>`, which will set the world border's center

Example of setting the X and Z as 20 and 45: `worldborder center 20 45`

![](https://images.surferseo.art/4ca2ad6c-1c63-4080-8c37-cbe04c7cbb06.png)

* Type `worldborder <set>`, which will set the world border size

Example of setting the number of blocks to 30: `worldborder set 30`

![](https://images.surferseo.art/11f0f6e5-264b-4e8a-887d-1bc5d91366d0.png)

### Advanced World Border Commands

* **/worldborder damage amount <value>**
    Causes players to take damage when they are near the border.  
    **Example:** `/worldborder damage amount 5` (players in the worldborder take 5 damage per tick)
    
* **/worldborder damage buffer <distance>**
    Sets the buffer distance within which players won’t take damage.  
    **Example:** `/worldborder damage buffer 10` (players 10 blocks inside the border will not take damage)
    
* **/worldborder warning distance <distance>**
    Sets the world border warning distance from the border where players are notified.  
    **Example:** `/worldborder warning distance 50` (warns players within 50 blocks)

**/worldborder warning time /worldborder warning time /worldborder warning time /worldborder warning time <seconds></s>**
Sets the world border warning time when near the border.   
**Example:** `/worldborder warning time 10` (warning lasts 10 seconds)

* **/worldborder add&#32;`<radius>`&#32;[time]**
    Expands the world border to a new radius over a specified time.  
    **Example:** `/worldborder add 2000 300` (expands to 2000 blocks in 5 minutes)

## Method 2: Using WorldBorder Plugin

In this method, we use the [WorldBorder plugin](https://www.spigotmc.org/resources/worldborder.60905/) and make sure to use the compatible server version, **Spigot**/**Bukkit**. To add plugins to your Minecraft server, click [here](https://help.sparkedhost.com/en/article/how-to-add-plugins-to-a-minecraft-server-1hh2oca/).

> NOTE: If you are using multiple worlds, type your world's name after the `/wb <worldname> set <values>` while using the commands.

* To set the world border type `/wb set <value>`

Example of setting the world border to 30: `/wb set 30`

Now, when you walk 30 blocks from where you set the world border, you'll get this warning

![](https://images.surferseo.art/352752dc-03af-42a8-9bdd-a9f8e279b84d.png)

* To set the raduis type `wb set <X> <Z>
    
    ![](https://images.surferseo.art/e7d6dd59-5975-4782-bf37-d75c151d00aa.png)
* To clear the world border created, type `/wb clear`
    
    ![](https://images.surferseo.art/126a267c-3b0c-4b38-a9b9-7a4a6f603e80.png)
* To change the border's shape to **elliptic/round** or **square/rectangle** type `/wb shape <shape>`
    
    ![](https://images.surferseo.art/aceb18e6-d9b0-405e-bf64-86865f70d6b8.png)
* To fill the world up to the world border, this will generate all the chunks around, which could help increase the performance if done before the server is launched. Type `/wb fill` then to confirm `/wb fill confirm`
    
* To trim the world that is outside the world border, type `/wb trim` then to confirm `/wb trim confirm`
    
* To change the knockback done due to the world border, type `/wb knockback <value>`

Example of setting the knockback to 10 blocks away from the border

![](https://images.surferseo.art/5db3af67-452e-4185-a221-118b9c1f0614.png)

To change the warning message type `/wb setmsg <warning>`

## Method 3: Using World Border Mod

|| In this method, we will use the [World Border Mod](https://www.curseforge.com/minecraft/mc-mods/world-border). Ensure you are using a compatible server version with your mod. You can change your server version [here](https://help.sparkedhost.com/en/article/how-to-change-a-minecraft-server-version-127uv7i/).

NOTE: To use the world border mod, you **must** also add the [Collective mod](https://www.curseforge.com/minecraft/mc-mods/collective) to your mods folder.

* Open your **Files** tab and locate the **config** folder
    
    ![](https://images.surferseo.art/d2d9bc06-1d27-41b5-ade8-751d5c4ffca6.png)
* Now, open the folder named **worldborder.json5**
    
    ![](https://images.surferseo.art/50a63139-c45d-4997-8092-02919c04d1e0.png)

You can now configure and edit all the mod settings with the following configurations

* **enableCustomOverworldBorder** *(default: true)*: Enables the custom border in the Overworld.
    
* **enableCustomNetherBorder** *(default: false)*: Enables the custom border in the Nether.
    
* **overworldBorderCoords** *(default: [(-5000, -5000), (5000, 5000)])*: Sets the Overworld border coordinates.
    
* **netherBorderCoords** *(default: [(-625, -625), (625, 625)])*: Sets the Nether border coordinates.
    
* **loopAroundBorder** *(default: false)*: When enabled, players hitting the border are teleported to the opposite side, creating a looping world effect

## Still have some questions about setting the world border?

If you want answers to your questions, you can file a ticket [here](https://billing.sparkedhost.com/submitticket.php)
By: Ali A.