Managed infrastructure for SMBs

How to Pre-generate a Minecraft World with Chunky to Stop Lag

Guides · GlassHosting

MinecraftPerformanceLagPlugins

The short answer

Every time a player walks or flies into land nobody has visited, the server has to build those chunks from scratch: terrain, caves, structures and everything in them. On a busy server that work competes with everything else the server is doing, and it is one of the most common reasons a Minecraft server lags or prints the "Can't keep up" warning when players explore. Pre-generating the world does that work ahead of time, during a quiet window, so the server only has to load chunks that already exist. This guide covers why it helps, how to pick a size, how to run it with the Chunky plugin or mod, and how to keep players inside the area you generated.

1. Why new chunks cause lag

Loading a chunk that is already saved is light work. Generating a new one is heavy: the server works out the terrain shape, carves caves, places ores, trees and structures, then lights the chunk and saves it. When several players explore in different directions at once, or one player flies fast with elytra, the server can fall behind. Players feel this as rubber banding, blocks that come back after being broken and mobs that freeze. Our guide on the "Can't keep up" warning and low TPS covers the other common causes, so you can rule them out as well.

2. Take a backup first

Pre-generation writes a lot of new region files, and the world folder will grow. Before you start, take a full backup of the world so you can go back if anything goes wrong or the size is not what you wanted. If you have not done this before, follow taking a backup before you change mods or plugins, and check that you have enough free disk space for a much larger world folder.

3. Pick a size that fits your players

Bigger is not always better. A larger area takes longer to generate and uses more disk space, and most of it may never be visited. Think about how far your players really travel from spawn, then add some room. A small friends server needs far less than a public survival server. You can always generate a modest area now and extend it later. Remember to pre-generate the Nether and the End too if your players use them, since those dimensions are separate worlds with their own chunks.

4. Install Chunky

Chunky is a free, widely used pre-generation tool. There are builds for Paper and Spigot servers as a plugin, and for Fabric and Forge servers as a mod. Download the build that matches your server software and Minecraft version from its official project page, upload it to the plugins or mods folder over SFTP or the panel file manager, then restart the server. Our guide on adding mods and plugins over SFTP walks through the upload.

5. Run the pre-generation

Run these from the server console, or in game as an operator:

  • /chunky world world picks the world to generate. Use the folder name of the dimension you want.
  • /chunky center 0 0 sets the middle of the area. Use your spawn point if it is not at 0, 0.
  • /chunky radius 3000 sets the distance in blocks from the center to the edge. Change the number to the size you picked.
  • /chunky start begins the job. Chunky shows progress in the console as it works.
  • /chunky pause and /chunky continue let you stop and pick up again later, for example when players come online.

Run it when the server is quiet, such as overnight, with few or no players online. The job keeps the server busy while it runs, so expect the server to feel slower until it finishes. Repeat the steps for the Nether and the End if you want them covered too.

6. Set a world border to match

Once the area is generated, keep players inside it so the server does not start generating new land at the edge again. The vanilla command /worldborder center 0 0 sets the middle, and /worldborder set 6000 sets the full width of the border in blocks. Note that the world border takes a width, while Chunky takes a radius, so a Chunky radius of 3000 matches a border width of 6000. Use the same center for both.

7. Check that it worked

After the job finishes, restart the server and watch the console while a few players explore toward the edge of the generated area. The "Can't keep up" warnings tied to exploring should drop off, and the world folder should be noticeably larger than before. Keep your backup until you are happy with the result, then make sure your normal backup schedule covers the bigger world. Our guide on schedules and automatic backups shows how to set that up.

Checklist

  • Backup taken and free disk space checked
  • Size picked from how far players really travel, plus some room
  • Chunky build matches your server software and Minecraft version
  • Center and radius set, job started during a quiet window
  • Nether and End covered if your players use them
  • World border set to twice the Chunky radius, same center
  • Console checked for lag warnings after a restart
  • Backup schedule updated for the larger world

Next steps

Glass Gaming, powered by GlassHosting, gives you a game panel with a file manager, SFTP, console access and scheduled backups, so a pre-generation run is a short job rather than a weekend project. GlassHosting is a managed service and infrastructure provider: we run your servers on our own network, so you can run your business. Browse our supported games, or keep reading: how much RAM a Minecraft server needs and Paper versus Spigot.

Host with GlassHosting

Order a plan or browse the knowledgebase for deeper how-tos.

Order / billing Knowledgebase All guides