There are two options if your server is crashing when you are exploring and loading chunks in your world - upgrading your server or pregenerating chunks.
Pregenerating your world is especially helpful on modpack servers that are running large modpacks like All The Mods, Better Minecraft, or DawnCraft. Those Modpacks are all available for 1.16.5 of Minecraft and newer, and for those modpacks and mods past 1.16.5, we have a guide to pregenerate those worlds! However, the mod used in that guide is not available for versions older than 1.16.5, so this guide will teach you how to use an alternative mod that supports older versions!
Step 1: Finding Your Minecraft Version & Modloader
First things first, we will need to find your Minecraft version. If you are installing your own mods, you will most likely already know the Minecraft versions and mod loader.
However, if you are using a modpack, here is a quick guide on finding the Minecraft version and modpack loader using the CurseForge App. We are assuming you already have the modpack downloaded via CurseForge.
- Open the CurseForge App and navigate to the "My Modpacks" tab.
- Click on the modpack you're running on your server.
- Here, you will see the Minecraft version and the mod loader. Typically, the mod loader will be Forge, Fabric, NeoForge, or Quilt depending on the mod loader you have. Make note of the Minecraft version and mod loader.
👨🔬 If your version is 1.16.5 or higher, and runs on Fabric / Forge / NeoForge, you can use Chunky instead! The mods will work similarly, so it is up to you on which one you want to use. You can follow our other pregeneration guide to use chunky instead.
Step 2: Download Chunk-Pregenerator
Now, we can download Chunk-Pregenerator. This is the Minecraft mod that we will use in order to pregenerate your world. The download process is the same just make sure you download the one for the Minecraft version you are using. The Chunk-Pregenerator mod also requires an additional dependency mod called Carbon Config. Without this extra mod, the server will not start with Chunk-Pregenerator installed.
Once you are on the download page for both mods, click on the "Files" tab. Here you will see all of the different versions of the mods that can be downloaded. Download the version for the Minecraft version you are using by clicking on the three dots next to it, and selecting "Download File".
You may need to keep or save the mods depending on your browser.
Step 3: Adding Both Mods to Your Server
Now, we need to add the mods to your server. Luckily, the mods only need to be added to the server, and it doesn't need to be added to your local game in anyway.
- Open up the game panel, and select your server.
- Click on the "File Manager" tab.
- Select the "mods" folder in the File Manager.
- Click the "Upload" buttion, and select and upload both mod files you downloaded.
- Once it is finished, click on the "Console" tab in the menu bar.
- Click the "Restart" button on the console to restart your server and activate the mods. We can now pregenerate your world.
Step 4: Starting Your World Generation
Once your server is restarted, it's very easy to generate your world. Just copy and paste this command in your servers console, and then hit enter.
pregen start gen radius GenExample CIRCLE 0 0 200
I won't be going into exact details about the syntax of this command, the important part to mention is the number at the end. In this case, it is set to 200, and this number represents the radius that the world will pregenerate in a circle around 0, 0. The more chunks pregenerated the better, but higher radius amounts can take quite a while to pregenerate. So 200 is a good starting number for the radius, and if your server is still having issues, you can attempt to run the command again with a higher number!
👨💻 If you want more information on this command, and other modifications you can make to the command. I would recommend checking out the Chunk-Pregenerator wiki.
Crashes & Potential Issues
It is extremely common for crashes to occur during chunk pregeneration. It is a process that is designed to use as much RAM as possible on your server, and occasionally, it uses too much.
When your server crashes, you may need to use the "Kill" button on the console page. You will get a warning, but you are good to progress anyway.
After the server has restarted or been started again using the "Start" button, just run the above commands in step 4 again. Chunk-Pregenerator will automatically skip already generated chunks.
This may have be repeated multiple times per chunk generation.