When players explore new areas, your Minecraft server has to generate the chunks there on the spot. This uses a lot of CPU and RAM and can quickly cause lag, especially when several players are exploring at the same time. It’s better to generate the world ahead of time (pregenerate). That way, the chunks are already stored on disk and only need to be loaded while playing.
Minecraft doesn’t include a feature for this. The easiest way is to use Chunky, a free chunk pregenerator available as a plugin and a mod. In this guide, you’ll learn how to install Chunky on your game server, pregenerate your world, and use its commands.
Chunky doesn’t run on a pure Vanilla server. It needs a server type that loads plugins or mods:
| Server type | Chunky as | Web interface tab |
|---|---|---|
| Paper, Spigot, Purpur | Plugin | Plugins |
| Fabric, Forge, NeoForge | Mod | Mods |
If your server is currently running Vanilla, switch the server type under Games & variants. Our guide to switching games explains how. For pregenerating alone, we recommend Paper: Paper generates chunks much faster than Vanilla or Spigot.
Each server variant has its own data folder. For example, if you switch from Vanilla to Paper, Paper starts with a new world. To keep using your current world, transfer it as described in Adding your own world.
Chunky is only available for Java Edition. You can’t use Chunky with Minecraft Bedrock Edition.
- Open your game server management page and go to the Plugins tab.
- Search for Chunky in the plugin browser and install it with one click.
- Restart your server to load the plugin.
Alternatively, download Chunky from Modrinth, Hangar, or SpigotMC and place the .jar file in the plugins folder. See our guide to installing and managing plugins for more information.
- Open your game server management page and go to the Mods tab.
- Search for Chunky in the mod browser and choose the version that matches your Minecraft version and mod loader.
- On Fabric, Chunky also requires the Fabric API. The mod browser shows you any required dependencies. Install the Fabric API as well if it isn’t already installed.
- Restart your server.
Alternatively, download the mod from Modrinth or CurseForge and place it in the mods folder. Our guide to installing mods / modpacks walks you through the steps.
Open the Console tab and enter chunky. If a help overview with all the commands appears, Chunky is installed correctly.
The easiest way to enter Chunky commands is directly in your game server’s Console, without a slash. As an operator, you can also use them in-game, with a / in front—for example, /chunky start.
First, choose the area you want to generate. If you don’t select an area, Chunky uses a square with a radius of 500 blocks around 0 0. To set a radius of 5,000 blocks around the center of the world, enter these commands in order:
chunky center 0 0
chunky radius 5000
chunky start
Instead of chunky center 0 0, you can use chunky spawn to set the world spawn point as the center. If you’ve already set a world border, chunky worldborder uses its center and radius.
You can also use abbreviations for the radius: chunky radius 10k means 10,000 blocks, and chunky radius 625c means 625 chunks.
It’s best to start with a smaller radius, such as 5,000 blocks, and expand it later—for example, with chunky radius +2k. The world size increases very quickly as the radius grows, and so do the generation time and storage requirements. When you start generation again, Chunky simply skips chunks that have already been generated.
Chunky always works with the currently selected world. To pregenerate the Nether and End, select each world and start generation again:
chunky world world_nether
chunky start
chunky world world_the_end
chunky start
On Paper and Spigot, the worlds are usually named world, world_nether, and world_the_end. On Fabric, Forge, and NeoForge, the dimensions are usually named overworld, the_nether, and the_end. If you’ve set a different level-name in server.properties, the name of the Overworld will be different too.
While generating, Chunky continuously reports progress in the console: chunks processed, percentage, estimated time remaining (ETA), and the rate in chunks per second. In-game, chunky progress shows the current status.
chunky pausepauses generation and saves the progress.chunky continueresumes paused or saved generation.chunky cancelpermanently stops generation. The progress is discarded, but already generated chunks are kept.
By default, Chunky doesn’t resume automatically when your server restarts. If you stop the server normally, the progress is saved, and you can resume it afterward with chunky continue. To have Chunky automatically resume after every restart, set the continue-on-restart option to true in the Chunky configuration and reload it with chunky reload.
- Best done while nobody is playing: Generate the world before your players join, for example overnight. This is faster and won’t interrupt anyone’s game.
- Prevent the server from pausing: Newer versions of Minecraft pause the server when nobody is online. If this happens, set
pause-when-empty-secondsto-1inserver.propertiesunder the Configuration tab so Chunky can keep running without players. - Set an appropriate world border: If the world border (
/worldborder) ormax-world-sizeinserver.propertiesis smaller than the generated area, mobs won’t spawn outside it. - Pause map plugins: Plugins or mods like Dynmap or BlueMap render every new chunk during generation. Pause rendering beforehand and resume it afterward.
- Make sure you have enough RAM: During pregeneration, chunks are constantly loaded and unloaded. Chunky recommends at least 4 GB of RAM. If you don’t have enough memory, you can upgrade your server under Manage plan.
Monitor the load: A large generation task puts your server under heavy load for a long time. If your server’s resource limit is exceeded for too long, it may be temporarily suspended. Generate the world in manageable steps and keep an eye on resource usage. Learn more in our guide to the resource limit.
| Command | Description |
|---|---|
chunky start | Starts generation for the current selection |
chunky pause | Pauses ongoing generation and saves the progress |
chunky continue | Resumes ongoing or saved generation |
chunky cancel | Cancels generation and discards the progress |
| Command | Description |
|---|---|
chunky world [Welt] | Selects the world to generate |
chunky shape [Form] | Sets the shape, e.g. square (default), circle, rectangle, or ellipse |
chunky center [x] [z] | Sets the center; if not specified, your current position is used |
chunky radius [Radius] | Sets the radius in blocks, e.g. 5000, 10k, or 625c |
chunky spawn | Sets the center to the world spawn point |
chunky worldborder | Uses the center and radius of the world border |
chunky corners [x1] [z1] [x2] [z2] | Sets the selection using two corner points |
chunky pattern [Muster] | Sets the order of generation; the default is usually fine |
chunky selection | Shows the current selection |
| Command | Description |
|---|---|
chunky progress | Shows the progress of all generation tasks in-game |
chunky silent | Turns progress messages off or on again |
chunky quiet [Sekunden] | Sets how often progress messages appear |
chunky reload | Reloads the Chunky configuration |
chunky trim | Deletes chunks outside the selection |
chunky trim permanently deletes chunks, including anything built in them. Be sure to create a backup in the Backups tab first, and restart the server after trimming.
