Pregenerate Minecraft chunks with Chunky
Pregenerate a Minecraft world with Chunky: the commands, a radius-to-chunks table, and the pause-when-empty-seconds setting that stalls an empty server.
Quick answer Chunky builds terrain ahead of time so players exploring do not trigger generation live [1]. Run
chunky radius 5000thenchunky starton a fresh world, with nobody online. Before you leave it running, setpause-when-empty-seconds=-1inserver.properties. Its default is 60, so an empty server pauses itself, and Chunky’s FAQ tells multiplayer servers to set it to-1for exactly this job [7][9]. Pregeneration does nothing for lag in terrain that already exists.
Why your server pauses on an empty world
Pregenerating is a job you run while nobody is online. That is Chunky’s own advice: pregenerate before players join, because it is usually faster and you avoid any gameplay impact [1].
The trap is a vanilla setting that arrived in Java 1.21.2. pause-when-empty-seconds is the number of seconds with no player online before the server is paused, the default is 60, and a negative value means the server is never paused [9]. Combine that default with the plan above and your empty server pauses itself a minute after the last player leaves.
Chunky’s FAQ is direct about it. Leave the game unpaused during pregeneration to avoid potential crashes from world saving, “for Multiplayer servers, ensure pause-when-empty-seconds is set to -1 in server.properties”, and avoid commands like /tick freeze [7]. I did not run an empty-server test to reproduce a stall, so the FAQ is the source here, not my own timing.
# server.properties
pause-when-empty-seconds=-1
Restart the server after editing so the file is re-read. The setting is a vanilla key, and the Chunky FAQ does not say whether it behaves differently on Paper or a modded server, so check that the run is still progressing a few minutes after you start (below). When the run is done, put the value back to 60 if you want the default [9]. If you are not sure where the file lives or how a panel edits it, the server.properties post covers it.
Prove generation is the problem first
Pregenerating helps only if generating new chunks is what is costing you tick time. Check before you spend an evening on it. Run /spark profiler start --timeout 120 while someone flies into unexplored terrain, then again in terrain that is already generated. If chunk generation dominates the first profile and not the second, pregenerate. If it does not, the cause is something else: start with TPS vs MSPT and the spark profiler post. Chunky changes nothing about mobs, hoppers, redstone or a slow plugin in loaded areas.
The run, start to finish
You need Chunky installed and a way to run commands. Its repository lists Spigot, Paper, Fabric, Forge, NeoForge and Sponge [2], and the Modrinth page adds Bukkit and Folia, with Minecraft versions from 1.13.2 through 26.3 as of 2026-11-17 [3]. Check the live listing for your exact version. Chunky’s wiki says commands are usually run in the server console, and in-game you add a leading / [1]. Back up the world first. If you want a routine for that, see automating backups.
- Check Chunky loaded. Type
chunkyand you should get a help menu. If you do not, the install or your permission is wrong [1]. - Select the world.
chunky world <name>picks one, andchunky worldwith no argument picks the one you are standing in [4]. - Set the size.
chunky radius 1000is a sensible first run.chunky center 0 0fixes the center, and the default selection is typically a square region centered on 0, 0 with a radius of 500 [4]. - Look at what you selected with
chunky selection[4]. chunky start[1].
You can also give everything in one line: chunky start world square 0 0 1000 [4].
What you should see: update lines in the server console reporting chunks processed, percent complete, ETA, the rate in chunks per second, and the location of the current chunk [1]. Not seeing them? They go to the console, or use chunky progress [1]. If the percentage has not moved after a few minutes, jump to the failure list below, and check pause-when-empty-seconds first.
Control commands [4]:
chunky pause [world] saves progress, resume with continue
chunky continue [world] resumes current or saved tasks
chunky cancel [world] deletes the task, cannot be continued
cancel does not delete chunks that were already generated. For that see trim below [4].
Choosing a radius
Chunky’s own advice is to start with a smaller radius (its example is 5000), since large worlds use a lot of disk and take a very long time, and to increase it later if you need to [1]. It does not give size or time per radius, and I did not run it for this post, so I have none to offer. The wiki points to a third-party world size calculator for a rough disk estimate [1][7]. What I can give you is the chunk count, which is arithmetic. A square selection of radius r blocks is 2r/16 chunks on a side, squared:
| Radius (blocks) | Chunks per side | Chunks in total (about) |
|---|---|---|
| 500 | 62.5 | 3,900 |
| 1,000 | 125 | 15,625 |
| 2,500 | 312.5 | 97,700 |
| 5,000 | 625 | 390,625 |
| 10,000 | 1,250 | 1,562,500 |
Doubling the radius quadruples the work. Chunky’s FAQ also says world size is not linear in radius [7]. To turn a count into a time, read the chunks-per-second figure from your own console and divide. If your server reported 100 chunks per second (an example, your rate will differ), a 5,000 radius run is about 3,900 seconds, around 65 minutes. Do a 1,000 radius run first, check du -sh world and the time, then scale up. On Paper 26.1 the dimensions live under world/dimensions/ rather than in separate folders in the server root, so one du on world covers all of them [10].
Pick a radius that covers where players will realistically go. A bigger world is a bigger backup, and the wiki lists limiting backup size among the reasons servers use a border [6].
The Nether and the End
Each dimension is a separate selection: the wiki changes the world and runs chunky start again [1]. The wiki’s example is chunky world world_nether, but it also says the exact name varies with your setup and Chunky version: world or overworld, world_nether or the_nether, world_the_end or the_end [1]. Paper 26.1 moved dimensions into world/dimensions/, where its release notes show minecraft/overworld, minecraft/the_nether and minecraft/the_end folders [10]. I could not confirm which names Chunky expects on 26.x, so do not copy world_nether blindly. Stand in the Nether and run chunky world with no argument [4], then confirm with chunky selection [4] before chunky start.
Match the border to the radius
Two things go wrong here. First, a border smaller than your radius. The FAQ says that if there are no mobs after pregeneration, it is normally because the world border or max-world-size in server.properties is smaller than your radius, since mobs do not spawn outside the border [7]. The only fix is to restore a backup or delete the chunks and pregenerate again [7]. max-world-size defaults to 29,999,984, so you only hit it if you lowered it [9].
Second, a border is also what stops players from generating new chunks beyond what you built [6]. chunky worldborder copies the current border’s center and radius into your selection [4]. One unit trap: the vanilla worldborder set takes a diameter, so a 10,000-block radius is worldborder set 20000, while chunky radius takes the radius [4][6]. The vanilla border is square only. ChunkyBorder (the official addon) supports any shape Chunky can generate but is invisible in-game [6], and chunky shape selects the shape [5].
Four ways it goes wrong
The run stalls or the server crashes. Start with add-ons. The FAQ lists known offenders: C2ME (experimental, various crashes), Dimensional Threading (numerous crashes during world generation), Dynmap (rendering while pregenerating causes performance problems), Dynview (its slow-unload setting), Galosphere (a shrine bug can stall generation), Iron Spellbooks (a deadlock from the Neutral Wizard), Starlight (stalls randomly) and Terraform Generator [7]. The FAQ’s first test is to confirm the server behaves with only Chunky installed [7].
A watchdog crash. The FAQ says Terraform Generator is prone to Watchdog crashes from slow generation, and suggests raising max-tick-time in server.properties temporarily [7]. The wiki gives the resulting message as “A single server tick took 60.00 seconds (should be max 0.05); Considering it to be crashed, server will forcibly shutdown.” [9] See the watchdog post for how that differs from running out of memory.
Empty buried-treasure maps. The FAQ blames Mojang bug MC-218156 and says Paper servers fix it by setting environment.treasure-maps.find-already-discovered.loot-tables to false in paper-world-defaults.yml [7].
A map plugin that did not update. Dynmap, BlueMap and Squaremap will typically not re-render by themselves after Chunky finishes, and the wiki suggests disabling the map plugin while you pregenerate [1][7].
If you generated too much
chunky trim deletes chunks outside the selection, or inside it, or only those at or below an inhabited-time value [4]. Make a backup first, because deleted chunks cannot be restored, and restart the server afterwards so nothing stale stays in memory [4][11]. The FAQ adds that trim cannot delete chunks the server currently has loaded, which includes the spawn region and force-loaded chunks [7].
Speed, if the run is slow
The FAQ’s list is short [7]:
- A fast CPU, where high single-thread performance is what the FAQ stresses, plus enough threads (vCPUs on a host).
- Run the world from a fast SSD.
- At least 4 GB of RAM is recommended. Too little can slow generation or crash the server.
- On Paper, the
worker-threadssetting inconfig/paper-global.yml(or the-DPaper.WorkerThreadCount=Xstart flag) controls generation threads, and the FAQ says to set it back to the default when you are done.
A high memory reading during a run is normal, because generation loads and unloads chunks rapidly, and the FAQ says it is usually not Chunky using it all [7].
Questions people ask
Can I pregenerate a world that players have already explored?
Yes. Chunky's FAQ says it is completely safe on an existing world: it skips chunks that already exist and generates the missing ones [7].
Why does Chunky stop when nobody is online?
On a stock server the default pause-when-empty-seconds is 60, which pauses the server after a minute with no player [9]. Chunky's FAQ says to set it to -1 on multiplayer servers, and not to use /tick freeze [7]. Set it back to 60 afterwards if you want the default behaviour.
Will Chunky keep going if the server restarts?
Not by default. continue-on-restart is false in Chunky's configuration [8]. Tasks are saved when the server shuts down normally, and chunky continue resumes them [7].
How do I pregenerate the Nether and End?
Chunky's wiki handles the Nether by changing the selected world and starting again [1]. The dimension name depends on your setup and version, so stand in the dimension and run chunky world with no argument to select it [1][4].