How to Pre-Generate a Minecraft World With Chunky
To pre-generate a Minecraft world, install the Chunky plugin (or mod), set a world border, then run /chunky radius 5000 and /chunky start. Chunky builds every chunk in that area ahead of time, so players never wait for new terrain and exploring stops causing lag. Pause with /chunky pause, resume with /chunky continue. Do it before your players arrive.
What pre-generating a world means
A Minecraft world is made of chunks, which are columns 16 by 16 blocks wide. The server only creates a chunk the first time a player gets close to it. Creating terrain, caves, structures and mobs is heavy work, and the server does it in the same loop that handles everything else.
That is why a server can feel smooth in your base and then stutter when someone flies over new land with an elytra. Pre-generating moves that work to a time you choose. Chunky walks over the area, loads each chunk, lets the game generate it and saves it. Later, when a player arrives, the server just reads the chunk from disk.
If your server already lags for other reasons, start with how to fix Minecraft server lag and what TPS means. Pre-generation fixes one specific cause: chunk generation spikes.
Why it helps
- Less lag while exploring. Fast travel (elytra, boats on ice, horses) no longer forces the server to build terrain on the spot.
- A steady TPS. Chunk generation is one of the biggest spikes in the tick. With the terrain already saved, the spikes go away.
- Fewer surprises with a world border. You pick a size, fill it, and everyone knows how big the world is.
- Better first impressions. On launch day, 20 players spreading out in different directions would otherwise all trigger generation at once.
It does not make the world run faster in other ways. Redstone, mobs and hoppers cost the same as before. See view distance vs simulation distance for settings that lower that load.
1. Install Chunky
- Chunky is a free plugin for Paper, Purpur, Spigot and Folia. It also has Fabric, Forge and NeoForge mod versions. Pick the one that matches your server software.
- On Tree Host, open your server, go to the Plugins tab (Mods on Fabric, Forge and NeoForge) and click Browse plugins. Search for Chunky. Tree Host searches Modrinth and only shows versions that work on your server.
- Install it and restart the server so it loads. You can read more about this in the servers guide.
- Check it loaded: type
/chunkyin the console. You should see its help text.
Not sure which software you run? Paper vs Purpur vs Fabric explains the choices, and how to add plugins covers installing from a jar file.
2. Set a world border first
Without a limit, players can walk forever and the world file keeps growing. Decide the size now. In the console, or in game as an op, run:
/worldborder center 0 0puts the border in the middle of the world./worldborder set 10000makes the border 10,000 blocks wide. That is a radius of 5,000 blocks from the center.
The vanilla /worldborder set command takes a diameter. Chunky's /chunky radius takes a radius. Mixing them up is the most common mistake: a border of 10000 matches a Chunky radius of 5000.
3. Choose the area and start
Run these commands one at a time. You can type them in the Tree Host console without the slash.
| Command | What it does |
|---|---|
/chunky world world | Picks the world to fill. Use world_nether or world_the_end for the other dimensions on Paper. |
/chunky center 0 0 | Sets the middle of the area. With no numbers it uses where you stand (in game only). |
/chunky radius 5000 | Sets the radius in blocks. 5k means 5,000, and 300c means 300 chunks. |
/chunky shape square | Square or circle. A square matches the world border exactly. |
/chunky worldborder | Copies the center and radius from the world border, so you can skip the three commands above. |
/chunky start | Begins generating. |
The easiest route: set your world border, then run /chunky worldborder followed by /chunky start. That fills exactly what players can reach.
4. Watch progress, pause and resume
| Command | What it does |
|---|---|
/chunky progress | Shows how far each task has got. |
/chunky pause | Stops generating and saves your place. |
/chunky continue | Carries on from where it paused or stopped. |
/chunky cancel | Stops and forgets the task. Chunks already made are kept. |
/chunky quiet 60 | Prints a progress message only every 60 seconds. |
/chunky silent | Turns the messages off or on. |
Chunky saves its task, so after a restart you run /chunky continue to pick it up again. Leave the server running until it prints that the task is finished.
How big an area should you pick?
Chunks are 16 blocks wide, so the number of chunks grows with the square of the radius. A radius of 5,000 blocks is a 10,000 by 10,000 square, about 390,000 chunks. Doubling the radius makes it four times the work.
| Radius (blocks) | Square size | Chunks (about) |
|---|---|---|
| 1,000 | 2,000 x 2,000 | 15,600 |
| 2,500 | 5,000 x 5,000 | 98,000 |
| 5,000 | 10,000 x 10,000 | 390,000 |
| 10,000 | 20,000 x 20,000 | 1,560,000 |
For a small survival server with friends, a radius of 2,500 to 5,000 is plenty. Most people never see that far. Each step up also takes more disk space and more time, and a bigger world means bigger backups. The exact size on disk depends on the version and any custom world generation, so check your world folder after a small run before you commit to a large one.
How long does it take?
It depends on the CPU and how much of it the server may use. Speed varies a lot: a fast CPU does far more chunks per second than a busy or shared one. Use /chunky progress for a live estimate. A radius of 1,000 often finishes within minutes. A radius of 5,000 can take hours.
Chunky uses a lot of CPU while it runs, so players online will feel it. Run it when the server is empty, or at least quiet. If your server is set to sleep when nobody is online, consider turning that off in Settings while the task runs, because the server must stay awake to finish. You can read how that works in sleep when empty.
Memory and other tips
- RAM: give the server enough memory. Generation needs room for the chunks it loads. See how much RAM a Minecraft server needs.
- Nether and End: run the same steps with
/chunky world world_netherand/chunky world world_the_end. The Nether is 8 times smaller in coordinates, so a radius of 625 covers the same area as 5,000 in the Overworld. - Do it on a fresh world. If players have already built things, Chunky only creates chunks that do not exist yet. It never replaces what is saved.
- Back up afterwards. A finished pre-generated world is worth saving.
- Version changes: terrain generated on one version can look different from new chunks on another. If you plan to change versions, read how to change your server's version first and pre-generate afterward.
- Resetting: if you start over, see how to reset a Minecraft world. Pre-generated chunks go with the old world.
Common problems
- Unknown command. Chunky did not load. Check you restarted the server and that the version matches your software and Minecraft version.
- It stops after a restart. Run
/chunky continue. - TPS drops while it runs. Expected. Lower the load by running when nobody is online, or pause and resume later.
- World is too big for the disk. Cancel the task with
/chunky cancel, lower the radius and run again. Existing chunks stay, so nothing is wasted. - Wasted work outside your border. Match your radius to the border, or use
/chunky worldborder, so Chunky only builds what players can reach.
Tree Host installs plugins like Chunky from Modrinth in one click and keeps backups of your world. Creating your own server opens at launch, and you can try the demo server now.