How to Pre-Generate your Minecraft World
Pre-generating your Minecraft world is a fantastic way to improve the performance of your server. Instead of generating new terrain on the fly as players explore, which is one of the more demanding things a server does, you generate the terrain ahead of time, so it’s already sitting there ready to load when players reach it. Here’s how to do it on your Minecraft server, using a plugin/mod called Chunky.
Pre-Generating Your Minecraft World
Section titled “Pre-Generating Your Minecraft World”-
Download Chunky for your server’s version and flavor of Minecraft, for example
1.21.8 Fabric. Make sure you grab the correct build, since Chunky is available for Fabric, Forge, and Paper/Spigot, and a mismatched version won’t load. -
Open the AleForge Panel.
-
Make sure your server is stopped.
-
In Versions, make sure your server is set to the same mod loader as the Chunky build you downloaded.
-
Go to the Files tab.
-
Upload Chunky to your
modsorpluginsfolder, whichever your server uses. If you don’t see one, create it with the Create Directory button. -
Go back to the Console page and start your server.
-
Make sure you’re opped, by running the following command in the console:
op <username> -
Open Minecraft and connect to your server.
-
In-game, run the following commands:
/chunky radius 1000/chunky start
This tells Chunky to generate a 1000-block radius around your world’s spawn point. Chunky will begin generating chunks in the background, and you’ll see progress updates in the console as it works.
A Few Notes
Section titled “A Few Notes”- Pick a radius that fits your needs. 1000 blocks is a reasonable starting point for a small to medium server, but you can set it higher or lower depending on how large you expect your world to need to be. Keep in mind that larger radiuses take longer to generate and use more disk space.
- This can take a while. Depending on the radius you choose and your server’s resources, pre-generation can take anywhere from several minutes to multiple hours. You can keep playing while it runs in the background, though performance may be reduced until it finishes.
- Check progress anytime by running
/chunky continueafter a restart if generation gets interrupted, or/chunky cancelif you want to stop it early. - Centering on a different point. By default, Chunky generates around your world’s spawn point. If you want to pre-generate around a different location instead, use
/chunky center <x> <z>before running/chunky start.