How to pre-generate chunks in your Minecraft world
Vanilla / Plugins
We recommend using the plugin Chunky (opens in a new tab) as it uses the natural chunk generation algorithm of the game, avoiding corrupted or cut chunks as happens with other plugins that promise to be faster.
Step 1
Your server must support plugins, you can use versions like Paper or Spigot. Then you have to upload the plugin Chunky (opens in a new tab) to your server, inside the plugins folder. On VexyHost you can install the plugin directly from the Plugins
tab in the Game Panel. Remember to stop your server before installing a plugin.
Step 2
Then we start our server and in the console we verify that the plugin has loaded correctly with the command plugins
. We can also give you OP from the console with the command:
op <player>
Remember that in games like Minecraft you should NOT use the /
slash for commands in the console.
Step 3
In this step we will use the following sequence of commands:
-
worldborder set <value>
-
chunky world <world name>
-
chunky worldborder
-
chunky start
We join our server and with the command /worldborder set
in the game, we can define the size of the border of the current world where we are. For example /worldborder set 10000
(this means that the map will have a limit of 10000 blocks in the 4 directions).
Then we use the command /chunky world
to define in which world we are going to perform the pre-generation. In this example it will be in the world named world
, so we use /chunky world world
.
[Chunky] World changed to world.
Now we define the area that we are going to pregenerate in that world, in this case the same area that has the worldborder that we established previously.
/chunky worldborder
[Chunky] Center changed to 0, 0.
[Chunky] Radius changed to 5000.
The Radius is always half of the total diameter, as in our case we set a diameter of 10000 blocks from the worldborder, Chunky will change the Radius to 5000 to pregenerate the total of the 10000 blocks in the 4 directions.
Finally we only have to execute /chunky start
to start pregenerating the chunks. You will be able to see the status of the pregeneration from the server console.
[20:53:54 INFO]: [Chunky] Task running for world. Processed: 125 chunks (0.03%), ETA: 0:34:28, Rate: 190.0 cps, Current: 13, 6
[20:53:56 INFO]: [Chunky] Task running for world. Processed: 194 chunks (0.05%), ETA: 1:05:25, Rate: 100.1 cps, Current: 15, 6
[20:53:57 INFO]: [Chunky] Task running for world. Processed: 234 chunks (0.06%), ETA: 1:22:56, Rate: 78.9 cps, Current: 4, 13
[20:53:58 INFO]: [Chunky] Task running for world. Processed: 268 chunks (0.07%), ETA: 1:37:34, Rate: 67.1 cps, Current: 7, 16
[20:53:59 INFO]: [Chunky] Task running for world. Processed: 303 chunks (0.08%), ETA: 1:48:54, Rate: 60.1 cps, Current: 7, 19
The ETA (Estimated Time) will become more and more accurate as the pre-generation progresses. Remember that Chunky uses the natural chunk pregeneration of the game so it will not use more than 300% of CPU even if you have more CPU available, this is a limitation of the chunk pregeneration of the game itself, forcing to use more CPU could generate corrupted or cut chunks as it happens with other plugins ruining your world.
Remember that if you want the plugin to continue with the pre-generation of chunks in case the server restarts due to lack of RAM memory you can enable it from the plugin configuration.
Mods / Modpacks (Forge)
For servers with Forge mods we recommend using the Chunk-Pregenerator (opens in a new tab) mod as it also uses the game's natural chunk generation algorithm, avoiding corrupted or cut chunks. It is also optimized to use multiple server cores which allows to pregenerate chunks in more than one world at the same time.
Step 1
Your server must be a Forge version. Then you must upload the mod Chunk-Pregenerator (opens in a new tab) to your server, inside the mods folder. Remember to stop your server before uploading the mod.
Remember to download the version of the mod that is compatible with your server version and have the mod in your launcher, the mod must be both on the server and in your .minecraft folder
If you still don't know how to upload files to your VexyHost server you can see this tutorial.
Step 2
We start and join to our server, then verify that we have the /pregen
command available.
Step 3
In this step we will use the following sequence of commands:
-
worldborder set <value>
-
pregen start gen worldborder 1 <world name> FAST_CHECK_GEN
Then we must have OP on our server to run the command /worldborder set
in our case we will choose a diameter of 10000 blocks, so the command would be: /worldborder set 10000
Finally with the command /pregen
we are going to start pregenerating the chunks inside the worldborder we created previously. In this case we are going to generate the chunks in the overworld, so the command would be: /pregen start gen worldborder 1 minecraft:overworld FAST_CHECK_GEN
.
The ETA (Estimated Time) will become more and more accurate as the pre-generation progresses. Remember that the mod uses the natural chunk pre-generation of the game so it will not use more than 300% of CPU even if you have more CPU available, this is a limitation of the pre-generation of chunks of the game itself, forcing to use more CPU could generate corrupted or cut chunks as it happens with other mods.
In case we run out of available RAM and the server restarts, the mod will automatically resume pregeneration as this is intended in case you leave it all night pregenerating chunks.
โ That's all! If you have any problems, please contact us via Discord (opens in a new tab) so we can help you.