Repository navigation
Pregeneration
Generating chunks ahead of players keeps play smooth and surfaces missing data early — a coverage gap is far better found during pregeneration than when a player walks into it.
/earth pregenerate <radius-chunks>
Requires terraforge.command.pregenerate. The radius is in chunks around the issuing player's
current chunk, from 0 to 32 (at most 4,225 chunks). Only one TerraForge job can run at once —
use /earth pregenerate status to inspect it or /earth pregenerate cancel to stop it. The job
requests one chunk per tick so it does not saturate the server.
Progress is reported live:
Preparing:
[██████████████░░░░] 72%
Chunks:
183,200 / 254,000
ETA:
00:04:37
Pregeneration runs on the generator worker pool, yields to player-driven chunk loads, and can be stopped and resumed — progress is checkpointed, so a restart does not start over.
java -jar terraforge-cli.jar pregenerate \
-c server/plugins/TerraForge/terraforge.yml --test-regionPick the area with exactly one of --radius <blocks> (around the origin), --bbox latMin,lonMin,latMax,lonMax, or --test-region (the bounds from the config).
World: earth
Blocks: X -369..369, Z -445..445
Chunks: X -24..23, Z -28..27 = 2,688 chunks
Region files: 4, roughly 39.4 MB on disk
DEM: 78 of 96 tile(s) prepared (81.3% of the area)
Missing tiles -- these areas would be flat at terrain.fallback-elevation:
N47E005.tfdem
...
Nothing was written. Run the generation in-server:
/earth pregenerate <radius-chunks> (stand near chunk 0, 0)
The command computes and validates the chunk set and never writes anything, which is what makes it safe to point at a live server's data directory. Actual world writing is done by the server, the only safe writer of region files.
At blocks-per-km: 1.0, the central-europe test region is roughly 740 × 950 blocks — about 2,800
chunks. Sizes scale with the square of blocks-per-km:
blocks-per-km |
Test region chunks | Approximate region-file size |
|---|---|---|
| 0.5 | ~700 | ~10 MB |
| 1.0 | ~2,800 | ~40 MB |
| 2.0 | ~11,000 | ~160 MB |
| 5.0 | ~68,000 | ~1 GB |
- Prepare the data (
prepare-region). -
terraforge info— confirm the block extent is what you expect. - Pregenerate a small radius and inspect the terrain in-game.
- Pregenerate the full region.
- Open the server.
Missing tiles are logged once each and filled with terrain.fallback-elevation. Check the log for
Missing DEM tile before letting players in, then re-prepare and regenerate the affected area.
See also: Performance · DEM Pipeline
TerraForge is MIT-licensed and community-maintained. Ships no geodata — see Data Sources for licensing. Found an error on this page? Suggest a fix via a pull request or open a documentation issue.
Getting started
Going deeper
Integrations
Help