Chunky: pregenerating the world on a Minecraft server
Generate your map in advance with Chunky, set a matching world border and estimate how long it takes and how much disk space it uses.
Generating new terrain is one of the heaviest things a server does. When a few players fly off with elytra in different directions, TPS drops. Chunky generates the map in advance, so during play the server only loads finished chunks.
Why pregeneration reduces lag
Loading a finished chunk from disk is many times cheaper than generating it: terrain shape, caves, structures, ores, lighting. On a fresh server every step into the unknown needs that work. Pregeneration moves it to a time when nobody is playing.
Chunky has builds for almost every engine:
| Engine | Build |
|---|---|
| Paper, Purpur, Spigot | Chunky plugin |
| Fabric | Chunky mod (needs Fabric API) |
| NeoForge, Forge | Chunky mod |
It helps most on modded servers with heavy terrain generation, where one new chunk costs much more than in vanilla.
Pregeneration step by step
- Take a backup if the world already exists.
- Install Chunky from Plugins or Mods and restart the server.
- In the console, set the world, the centre and the radius, then start the task:
chunky world world
chunky center 0 0
chunky radius 5000
chunky start
On Paper the overworld is called world, the Nether world_nether and the End world_the_end. On Fabric and NeoForge you use names like minecraft:overworld. Change the shape with chunky shape circle (square by default).
Progress shows in the console. Pause the task with chunky pause, resume it with chunky continue and stop it with chunky cancel. If you want pregeneration to carry on by itself after a server restart, set continue-on-restart: true in the Chunky config.
Set a world border
Pregeneration without a border does less than you would think: players still reach the edge and start generating new chunks. So set the border on the generated area. The vanilla command takes the diameter, not the radius:
worldborder center 0 0
worldborder set 10000
That matches a Chunky radius of 5000. On Paper you can also add ChunkyBorder, which draws the border from the shape set in Chunky, round ones included.
How long it takes and how much space it uses
| Radius (square) | Area | Chunks |
|---|---|---|
| 2000 | 4000 × 4000 blocks | about 62,500 |
| 5000 | 10,000 × 10,000 blocks | about 390,000 |
| 10,000 | 20,000 × 20,000 blocks | about 1.56 million |
The time depends on the CPU, the game version and mods. A radius of 5000 in vanilla usually takes a few hours, much longer on a heavy modpack. The size varies too: a normal world with a radius of 5000 takes up a few gigabytes, and the Nether and End count separately. The most reliable estimate is your own: after a few percent of progress, check the size of the region folder in Files and scale it up.
Pregeneration puts a heavy load on the CPU, so run it when nobody is on the server, for example at night. Do not overdo the radius: for a server with around fifteen players, a radius of 3000 to 5000 usually lasts a long time. More about worlds is in A new world on a Minecraft server, and other lag causes are in Minecraft server lag and TPS.
Common questions
Does Chunky work on Fabric and NeoForge? Yes. Chunky has a plugin version for Paper and Spigot and mods for Fabric, Forge and NeoForge. The commands are the same.
What radius should I set in Chunky? For a server with around fifteen players, usually 3000 to 5000 blocks. A larger radius means a longer pregeneration and more disk space used.
Can I play during pregeneration? You can, but the server will be slower because Chunky is using the CPU. It is best to run pregeneration when nobody is playing and pause it with chunky pause when someone joins.
Does Chunky set the world border? Chunky only generates terrain. You set the border with worldborder set and the diameter, or with the ChunkyBorder add-on on Paper.
Can I uninstall Chunky after pregenerating? Yes. The generated chunks stay in the world files. You only need the plugin again when you enlarge the map or start a new world.
Plugins and mods install straight from the panel on every plan of our Minecraft server hosting.