Tree Host

How to Pre-Generate a Minecraft World With Chunky

Updated · by the Tree Host team

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

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

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:

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.

CommandWhat it does
/chunky world worldPicks the world to fill. Use world_nether or world_the_end for the other dimensions on Paper.
/chunky center 0 0Sets the middle of the area. With no numbers it uses where you stand (in game only).
/chunky radius 5000Sets the radius in blocks. 5k means 5,000, and 300c means 300 chunks.
/chunky shape squareSquare or circle. A square matches the world border exactly.
/chunky worldborderCopies the center and radius from the world border, so you can skip the three commands above.
/chunky startBegins 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

CommandWhat it does
/chunky progressShows how far each task has got.
/chunky pauseStops generating and saves your place.
/chunky continueCarries on from where it paused or stopped.
/chunky cancelStops and forgets the task. Chunks already made are kept.
/chunky quiet 60Prints a progress message only every 60 seconds.
/chunky silentTurns 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 sizeChunks (about)
1,0002,000 x 2,00015,600
2,5005,000 x 5,00098,000
5,00010,000 x 10,000390,000
10,00020,000 x 20,0001,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

Common problems

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.

More guides

← More guides