What does pre-generating chunks mean?

Pre-generating chunks is a useful technique for servers to help reduce the server load in the future. In Minecraft, chunks generate as players walk around the world to new places. By pre-generating the chunks, your world will already be built and the server just has to load in the data rather than creating it. It is recommended to do this with only you online as it does cause major lag and resource usage whilst in progress but reduces the load afterwards.

What does trimming chunks mean?

Trimming chunks means removing chunks that are outside of the specified world border [see below] so that the server uses less unnecessary storage. It doesn't remove any chunks you use, only ones outside of the specified zone set by you.

Requirements:

Before pre-generating chunks, you need to make sure you have the following on your server:

A form of Bukkit or Spigot (Vanilla servers will not work, please refer to the bottom of the article for forge servers.)
The latest version of WorldBorder which can be found at the following links 1.8-1.12, 1.13-1.14, 1.15-1.16
A decent server (for large pre-generating, 1-2GB servers may not be enough).

How do I pre-generate the chunks then?

Install the WorldBorder plugin on your server and restart;
Stand in the centre of the world you wish to pre-generate (this is usually 0,0 but you may want to do it based off of where your server spawn is)
Type "/wb set <radius>" - this will make a square worldborder based on where you are standing. If you want a rectangle, use "/wb set <radiusX> <radiusZ>"
Make sure you are the only user online for the following steps as they will cause lag on your server. We recommend turning on whitelist with "/whitelist on"
Type "/wb fill" then "/wb fill confirm" to start the generation process. This will take a long time depending on the world size you chose.
You will receive regular updates from the plugin telling you exactly where it is in the process:
You will receive regular updates from the plugin:

__You can cancel the generation at any time with "/wb fill cancel", or pause it with "/wb fill pause".__
OPTIONAL: Perform "/wb trim" to remove all generated chunks that are 13 chunks outside of your border. This will again take some time and should be performed with only you online.

Here are some images of what pre-generating and trimming your world look like. These images are from Brettflan's WorldBorder plugin page on Bukkit:



Pre-generate chunks on a modded server
Pre-generating a modded server can be very useful as modded terrain can sometimes cause greater server load.
It is recommended to do this with only you online as it does cause major lag and resource usage whilst in progress but reduces the load afterwards.

Requirements:
Before pre-generating a modded servers chunks, please ensure the following:

Your server is offline and you've taken a manual backup using the backups/restore page.
Your server is running forge 1.4.7-1.16
A decent server (for large pre-generating, 1-2GB servers may not be enough).
The version of Chunk-Pregenerator corresponding with your servers forge version.

How do I pre-generate chunks on my modded server?
Install the Chunk-Pregenerator mod on your server and restart.
Stand in the center of the world you wish to pre-generate (this is usually 0,0 but you may want to do it based off of where your server spawn is)
Type /pregen gen startradius SQUARE 0 0 100 This command will generate everything within a 100 chunk radius of your location. You can modify the radius size by increasing the Z variable.
Note: Change SQUARE to CIRCLE to pre-generate the radius in a circle of the user.
The mod will send updates regarding each chunk that has been generated. Once completed the pre-generation summery will display with the amount of chunks generated alongside any chunks that have failed to generate.
For further commands and mod information please review the mods commands here: Chunk-Pregenerator Commands
Was this article helpful?
Cancel
Thank you!