Ordered map hooks
Wrap generators, adjust padding, forward force requests, or finalize region data after the map chain.
Explore map hooksWorldgenLib is a server-side C# API for modders who want their world-generation changes to coexist instead of competing for the same vanilla pass.
Map.Register(
"my-mod:climate",
order: 40);
// one seam, no takeover
WorldgenLib is infrastructure, not a terrain overhaul. It adds no blocks, items, biomes, or world shape by itself. A consumer mod chooses the hook points it needs and keeps ownership of its own algorithm.
Use the smallest seam that expresses the change. The library orders registered hooks, carries typed request state, and makes replacement boundaries explicit.
Wrap generators, adjust padding, forward force requests, or finalize region data after the map chain.
Explore map hooksChange border preparation, octave construction, distortion, water selection, thresholds, or columns.
Explore terrain hooksUse typed region, chunk, and column contexts with namespaced data instead of private engine fields.
Explore contextsKeep post-process cleanup and BlockLayers work separate from terrain hooks, with scalar and terminal seams.
Explore late passesThe same library serves the person installing a compatible mod and the person building one.
Read the getting-started guide, choose a hook boundary, and keep your worldgen algorithm inside your own mod.
Open the modder guidePlace the release in the server Mods folder. Clients do not need WorldgenLib when a consumer mod declares it server-side.
WorldgenLib has server lifecycle evidence across the supported Vintage Story range. Read the boundaries before pairing it with a full worldgen replacement.
Canonical parity checks cover the documented map-region and terrain probe boundaries. They do not claim byte-identical persisted saves, entity state, lighting, or every foreign Harmony or IL patch.
Read status and limitsThree small steps for server owners and consumer-mod authors.
Read getting startedPut the WorldgenLib ZIP in the server Mods folder.
Choose a worldgen mod that declares the library dependency.
Check that mod's hook and version instructions before generating.