Using the WorldBorder plugin for Spigot or Paper, you can trim out chunks of your Minecraft server world that are outside of your configured border using commands.
If you don’t already have WorldBorder installed on your server, you’ll need to install it in order to follow the steps in this tutorial. You can download the WorldBorder plugin from the SpigotMC website, then follow our tutorial on installing Minecraft plugins.
# Trimming your World
As an operator (OP), you can use commands to trim your world.
The command to trim a world is: /wb {worldname} trim {freq} {pad}
.
- You can replace
{worldname}
with the name of the world you want to trim. If you don’t specify a world name, the current world you are in will be used. - Replace
{freq}
with the number of chunks per second WorldBorder will try to check for and trim off. For optimal performance, set this number to 20 or lower. A lower number will take longer, but will reduce lag on your server. - Replace
{pad}
with a number representing the buffer to add beyond your border. The default is 208 and is suitable for most servers.
You can use the /wb fill
command to generate missing chunks of your world that are within the border. To learn more, check out our article on pre-generating your world using WorldBorder.