Offer Why us? How it works?
Guide

How to Pregenerate a Minecraft World: Chunky and Lag-Free Chunk Generation

Generating new terrain is one of the heaviest jobs a Minecraft server does – it's why the server lags when players fly off into the unknown with elytra. Pregeneration does that work once, in advance, while nobody is playing. This guide shows two ways to do it: a switch in the Spot.gg panel and the Chunky add-on with /chunky radius and /chunky start – plus how long it takes and how much disk space the world will need.

Updated: 10 min read
Table of contents
  1. What does it mean to pregenerate a Minecraft world?
  2. Pregeneration in the Spot.gg panel – no add-ons needed
  3. How to pregenerate with Chunky, step by step
  4. 1. Install Chunky
  5. 2. Set the area
  6. 3. Start and control it
  7. 4. The Nether and the End
  8. 5. Minecraft 1.21.2 and newer: stop the empty server from pausing
  9. Panel or Chunky – which should you use?
  10. How long does pregeneration take and how much disk space does it use?
  11. Good practice before you pregenerate
  12. FAQ
  13. Does pregenerating the world reduce lag?
  14. What radius should I use in Chunky?
  15. Can people play while the world is pregenerating?
  16. Why didn't Chunky resume after a restart?
  17. Does Chunky work on Vanilla?
  18. Will pregenerated chunks change after a Minecraft update?

What does it mean to pregenerate a Minecraft world?

Pregenerating means generating the world's terrain in advance, before players get there – the server creates the chunks once, while nobody is online, and from then on only loads them. Without it, every chunk is created the moment someone comes close enough.

Creating a new chunk is a lot of work: terrain shape, caves, ores, structures, trees and lighting. Loading an existing chunk from disk is far lighter. That's why pregeneration helps most where players explore a lot:

  • Less lag while exploring. One player on elytra can force hundreds of new chunks per minute. In a pregenerated world the server only loads them.
  • Higher view distance without the cost. A high view-distance hurts much less when the terrain already exists – more in Minecraft view distance.
  • A complete map right away. A world map can draw the whole area, not just the places someone has already visited.

Pregeneration won't speed up farms, mobs or redstone – that's a different kind of load. For those, lower the simulation-distance and use the spark profiler.

Pregeneration in the Spot.gg panel – no add-ons needed

On Spot.gg, open the "Worlds" tab and turn on the "Pregeneration" switch in a dimension's card – we take care of the rest while nobody is on the server. It works on every Minecraft Java engine from 1.14 (Vanilla, Paper, Purpur, Fabric, Forge, NeoForge and more), with no plugin and no commands.

  1. Open your Minecraft server on Spot.gg and go to the "Worlds" tab.
  2. Pick a dimension: Overworld, Nether or End.
  3. In the "Pregeneration" tile, click the switch. The status changes to "On" with the range in blocks.
  4. Leave the server running. When the dimension is finished, the tile shows "Done".

How it works:

Situation What we generate
The dimension has a "World border" Terrain up to the world border
The dimension has no border ("No border") 2,000 blocks from the centre of the world in every direction
At least one player is online Nothing – pregeneration waits until everyone leaves and picks up where it stopped
The server is off Nothing – it resumes after the server starts
The server disk is more than 90% full Nothing – the tile shows "Paused · disk over 90% full"

Terrain is generated in batches from the centre outwards, and one server works on one dimension at a time (Overworld first, then the Nether and the End). If you change the world border, pregeneration starts again from the centre with the new area – chunks that already exist are kept.

Set the border before you pregenerate. In the same view, click "Settings" in the "World border" tile, choose the "Distance from the center" with the slider (500 to 20,000 blocks) or one of the quick values, enter "Center X" and "Center Z" if needed, and click "Save border". In versions before 1.21.9 one border applies to all dimensions and you set it in the Overworld – in the Nether we then generate 1/8 of that distance, because 1 Nether block equals 8 Overworld blocks.

How to pregenerate with Chunky, step by step

Install Chunky from "Addons", set the area with chunky radius (or chunky worldborder) and start with chunky start in the "Console". Chunky is the most popular pregeneration tool – it's useful when you want to choose the exact shape and area, go beyond 20,000 blocks from the centre, or watch the progress live.

Which Chunky you need depends on your engine:

Engine Chunky version
Paper, Purpur, Folia Chunky (plugin)
Fabric Chunky (Fabric) – needs Fabric API
Forge, NeoForge Chunky (Forge/NeoForge)
Vanilla Chunky won't run – use pregeneration in the "Worlds" tab

1. Install Chunky

Open "Addons" → "Available to install", search for Chunky and install the version marked "Compatible with your server". Restart when the panel asks.

2. Set the area

Type the commands in the "Console" without the slash (in game, with / and operator rights). By default Chunky selects a square in the Overworld centred on 0 0 with a radius of 500 blocks.

chunky center 0 0
chunky radius 5000

chunky radius is a radius – the distance from the centre to the edge. chunky radius 5000 gives a 10,000 × 10,000-block square. You can use shortcuts too: 5k means 5,000 blocks, 100c means 100 chunks.

If you already have a world border, this is enough:

chunky worldborder

Chunky then copies the centre and size from the border. Watch the units: /worldborder set takes the width (diameter), while chunky radius takes half of it – a worldborder set 10000 border is radius 5000 in Chunky. All border commands are covered in Minecraft world border. The panel's "Distance from the center" is also a radius.

3. Start and control it

chunky start
Command What it does
chunky start Starts generating the selected area
chunky pause Pauses and saves progress
chunky continue Resumes a paused task
chunky cancel Stops the task for good (generated chunks are kept)
chunky progress Shows progress in game (the console shows it all the time)
chunky silent Turns progress messages off and on
chunky quiet 30 One message every 30 seconds instead of every second
chunky selection Shows the current selection
chunky shape circle Switches the shape to a circle (square by default)

In the console Chunky keeps printing the percentage, chunks per second and the estimated time left (ETA). You don't need to watch it – you can close the panel and the server keeps generating.

After a restart the task doesn't resume on its own. Type chunky continue, or set continue-on-restart to true in Chunky's config (on Paper and Purpur that's plugins/Chunky/config.yml in the "Files" tab).

4. The Nether and the End

Select the world before starting. On Paper and Purpur the dimensions are separate worlds:

chunky world world_nether
chunky radius 625
chunky start

The End is world_the_end. On Fabric, Forge and NeoForge the dimensions are usually called the_nether and the_end. One Nether block equals 8 Overworld blocks, so a radius of 625 in the Nether matches a radius of 5,000 in the Overworld.

5. Minecraft 1.21.2 and newer: stop the empty server from pausing

Since Minecraft 1.21.2 a server with no players pauses after 60 seconds (pause-when-empty-seconds=60). Chunky's developers recommend setting it to -1 while pregenerating. Change it in "Configuration" → "server.properties" (search for pause-when-empty-seconds, click "Save changes" and restart). You can set it back to 60 afterwards. This doesn't affect pregeneration from the "Worlds" tab.

Panel or Chunky – which should you use?

For most servers the "Pregeneration" switch in "Worlds" is enough; pick Chunky when you want full control over the area and speed. Don't run both on the same dimension at once.

"Pregeneration" in the panel Chunky
Setup Nothing to install Plugin or mod from "Addons"
Engines Any Java from 1.14, including Vanilla Paper, Purpur, Folia, Fabric, Forge, NeoForge
Area Up to the world border or 2,000 blocks Any radius, shape and centre
When it runs Only while nobody is playing All the time, players included (unless you pause it)
Speed Steady, in batches with breaks As fast as the CPU allows
Progress "On" / "Done" in the tile Percentage, chunks/s and ETA in the console

How long does pregeneration take and how much disk space does it use?

Time and disk space grow with the square of the radius – double the radius means four times as many chunks. So start smaller and expand if you need to (Chunky's documentation also suggests starting with something like 5,000).

Radius (from the centre) Area Chunks Disk space (rough estimate, Overworld only)
1,000 2 × 2 km about 15,600 about 0.1–0.3 GB
2,000 4 × 4 km about 62,500 about 0.5–1 GB
5,000 10 × 10 km about 390,600 about 3–6 GB
10,000 20 × 20 km about 1.56 million about 12–25 GB

The disk size is a rough range: it depends on the terrain (oceans take less than mountains and forests), on mods that add biomes and structures, and on how much players build. You'll find the real size under "Worlds" → "World details" → "Size". The Nether and the End need extra space.

Time depends mostly on the CPU, the engine and mods:

  • Panel pregeneration works in batches with breaks so it doesn't load the server. The default 2,000 blocks usually takes about 1–1.5 hours on an empty server; a 5,000 radius takes several hours. Only time with nobody online counts, so on an active server it's spread over a few nights.
  • Chunky runs as fast as the CPU allows and shows its own estimate (ETA). Modpacks with new biomes and structures generate noticeably slower than Vanilla or Paper.

If the ETA looks unreasonable, stop (chunky cancel) and start again with a smaller radius.

Good practice before you pregenerate

Make a backup, set a world border, generate while the server is empty and keep an eye on disk space.

  • Backup. Before any big change to the world, make a backup in "Backup" – see Minecraft server backups.
  • World border. Without one, players will still walk past the generated area and the server will start creating new chunks during play. A border at the edge of the pregenerated area solves that.
  • Empty server. Chunky pushes the CPU to the limit – run it in the evening or overnight, before you invite players.
  • Disk space. Check usage before generating a large area. If you run out, you can pick a bigger disk with "Change parameters".
  • Map after pregeneration. The map in the "Worlds" tab (the "Map" tile) will draw all the generated terrain – turn it on after pregenerating, as it takes disk space too.
  • Removing chunks outside the border. chunky trim deletes chunks outside the selection. It can't be undone without a backup, and the server should be restarted afterwards.

FAQ

Does pregenerating the world reduce lag?

Yes, if the lag shows up when players explore new land – the server no longer has to create chunks during play. It won't fix lag from farms, mobs or redstone; for that, start with the spark profiler and a lower simulation-distance.

What radius should I use in Chunky?

For a small server with friends, 2,000–3,000 blocks is usually enough; for a survival server with a dozen or more players, about 5,000. Larger areas take a lot of space and time – start smaller and expand later if needed.

Can people play while the world is pregenerating?

With Chunky, yes, but the server will be slower; it's best to run chunky pause when someone joins and chunky continue once the server is empty again. Pregeneration in the Spot.gg panel waits for an empty server on its own.

Why didn't Chunky resume after a restart?

continue-on-restart is off by default. Type chunky continue or set that option to true in Chunky's config.

Does Chunky work on Vanilla?

No – it's a plugin or mod, so it needs Paper, Purpur, Folia, Fabric, Forge or NeoForge. On a Vanilla server on Spot.gg, use the "Pregeneration" switch in the "Worlds" tab.

Will pregenerated chunks change after a Minecraft update?

No. Generated terrain stays the way it was. New biomes and structures from a new version only appear in chunks created after the update.

Other guides

How to Change the View Distance on a Minecraft Server Change view-distance on a Minecraft server: server.properties, the panel, how it differs from simulation-distance, recommended values and Paper's old no-tick setting. 8 min read How to Fix Minecraft Server Lag: TPS, Ping, FPS and What Actually Helps How to find and fix Minecraft server lag: TPS vs ping vs FPS, spark, view and simulation distance, pre-generation, Paper and Purpur, performance mods and why more RAM rarely helps. 12 min read How to Use spark on a Minecraft Server: Profiler, TPS and Health Report How to use the spark profiler on a Minecraft server: spark tps, spark health, spark profiler, reading the report and what replaced Paper's Timings. 10 min read How to Make a OneBlock Server in Minecraft: Modpack or Plugin How to make a Minecraft OneBlock server for you and your friends: pick a OneBlock modpack or install a OneBlock plugin on Paper, set up islands and invite players. 9 min read How to Install BlueMap: 3D Web Map for Your Minecraft Server How to install BlueMap on a Minecraft server: plugin or mod, accept-download, the webserver port, opening the map in a browser and fixes when it fails. 11 min read Minecraft Spawn Protection: How to Change or Disable spawn-protection How spawn-protection in server.properties works: radius and area size, how to disable spawn protection (0), why it does nothing without OPs and when WorldGuard is better. 7 min read