How to Pregenerate Your Minecraft Server World with Chunky
When someone explores new terrain, the server has to invent it on the spot, and everyone feels it. Pregenerating it beforehand, with the server empty, avoids that.
What pregenerating is and when it's worth it
Minecraft builds the world in pieces (chunks) as you walk. Generating a chunk costs more than loading it, so flying with elytra or several players exploring at once is what causes the most stutter. Pregenerating means asking the server to create those chunks in advance, while nobody is playing.
It's worth it if you're going to explore a lot, if you're going to use a live map (BlueMap or Dynmap) or if the server is short on RAM and CPU. If your world is small and you hardly leave base, you don't need it.
Rather not set it up yourself? Minecraft servers from €6 a month, no contract and a full refund within 72 hours. Or create a free Minecraft server, no card needed.
On NapNodes it's already done around spawn
When a Minecraft server is created, the system generates the terrain around the spawn point before telling you it's ready (it uses Chunky for that, and removes it if there are mods so it doesn't clash with your modpack). If you upload a modpack and recreate the world, it's generated again. Even so, the starting radius is 2,000 blocks: if you want to go further, this guide is for you.
Doing it with Chunky
Install Chunky
It's a plugin (Paper, Purpur) and also a mod (Fabric, Forge, NeoForge). In the panel, “Mods & plugins” finds it on Modrinth for your version and loader. Restart the server.
Choose the world and centre
In the panel console: “chunky world world” (the main world, which is the one explored most) and “chunky center 0 0”, or “chunky spawn” to centre it on the spawn point.
Set the radius
“chunky radius 3000” generates a square of about 6,000 × 6,000 blocks around the centre. With 3,000–4,000 that's already a huge amount of terrain.
Start
“chunky start”. With “chunky progress” you see how much is done and how much is left, and with “chunky pause” or “chunky cancel” you stop it; when you resume it with “chunky continue” it carries on where it left off.
Best with nobody online
Generating uses a lot of CPU. Do it overnight or with the server empty: while it runs, players will notice stutter (if they notice it afterwards, the lag guide picks up from there).
How long it takes and how much space it uses
It depends on the CPU: from a few hundred chunks per second to a lot fewer on a modest machine, and the time grows with the square of the radius (double the radius, four times the work). Disk grows the same way: a radius of 5,000 blocks can take up several GB, so check your plan's space before launching it (on NapNodes, each server's disk is changed in “My servers” → “Adjust”, using whatever you have free).
A big pregeneration also makes backups bigger, because the world weighs more. If you're never going to set foot in those areas, it's wasted space.
Put a border on the world
Pregenerating doesn't help much if someone later walks beyond the radius. With “/worldborder set 6000” the world ends right where the pregenerated area ends (the diameter is twice the radius). Chunky also has “chunky worldborder” to copy the border you already have.
Frequently asked questions
What does Chunky do on a Minecraft server?
It generates the world's chunks in advance within a radius you choose, so exploring doesn't force the server to create terrain during play.
What radius should I pregenerate?
For a group of friends, between 2,000 and 5,000 blocks is plenty. A bigger radius means a lot more time and disk.
Does pregenerating remove lag?
It removes the lag that comes from generating new terrain. It doesn't fix lag from farms, entities or heavy mods.
Does it work with mods?
Yes: Chunky has versions for Fabric, Forge and NeoForge. It has to be the one for your loader and your Minecraft version.
Shall we set it up for you?
Minecraft servers from €6 a month, never oversold: your RAM is yours alone. And if you'd rather start without paying, there's a free Minecraft server, no card needed.
Your server doesn't show up in the game? Check it in a second with “Is my Minecraft server online?”: players, version and MOTD, free. Need a player's UUID for the whitelist or permissions? Look it up here. Handing out enchanted items? Build the command with the /give generator.
Linking portals? Convert coordinates to the Nether and back with the Nether calculator: paste what F3 shows and you get where to build the other one.
Free tool: Chunky pre-generation calculator. How much disk and time pre-generating your world with Chunky takes for a given radius, with the console commands ready.
Free tool: World border generator. Radius or side, centre, Nether and End, and a shrinking border for UHC: the /worldborder commands for your version.
Free tool: Minecraft region file calculator. From coordinates or an area of your Minecraft world to the r.X.Z.mca file and its folders, to delete or regenerate just that piece.
Keep reading
- How to Download Your Minecraft Server World and Play It in Singleplayer
Download your Minecraft server world to your PC and open it in singleplayer: which folder to take, Paper's Nether and End, and why your inventory is empty.
- How to Reset Your Minecraft Server World and Start Over (or With a New Seed)
Start a new map on your Minecraft server without losing the old one: back up, move the world folder aside, pick a seed and what happens to the Nether and End.
- How Many Players Can a Minecraft Server Handle?
How many players fit on a Minecraft server depending on RAM, plugins and mods, and how to test it with your own group.