How to Pregenerate World Chunks in Hytale
One of the most common causes of server lag is "chunk generation"โthe process of creating new terrain when players explore new areas. To ensure smooth gameplay, you can pre-load these areas before players join.
This guide explains how to use the pregeneration command to stabilize your server performance.
Pregenerating chunks requires significant CPU and RAM. Do not run this command while players are online. We recommend running this process during maintenance or immediately after setting up the server.
The Pregeneration Command
To start pregenerating, you need to define the boundaries of the map you want to load. The command structure is:
/world settings pregenerate set --world=default
How to Calculate Coordinates (Example)
If you want to pregenerate a world with a radius of 2000 blocks around the center (0,0), you would calculate it like this:
- MinX / MinZ: -2000 (Negative direction)
- MaxX / MaxZ: 2000 (Positive direction)
So, the final command to run would be:
/world settings pregenerate set -2000 -2000 2000 2000 --world=default
Step-by-Step Guide
- Login to your MintServers Console or join the server as an Admin.
- Ensure no players are currently exploring or building.
- Run the command with your desired coordinates. For a standard start, we recommend a 1000 to 2000 block radius:
world settings pregenerate set -1000 -1000 1000 1000 --world=default
(Note: If typing in the console, you do not need the/at the start). - Wait. The server will begin generating the terrain. Watch the console for progress.
- Once finished, the console will confirm the task is complete.
Specific World Generation
If you have multiple worlds (e.g., a resource world or a creative world), simply change the --world=default tag to match your world name.
Example for a world named "Mining":
/world settings pregenerate set -500 -500 500 500 --world=Mining