Modding:WorldGen Concept: Difference between revisions

From Vintage Story Wiki
m
Line 13: Line 13:
World generation is very modular. Almost all generated parts of the world, such as ore deposits, creatures or trees, are specified via JSON content mods. On a coding level, each stage of generation triggers an event which the base game registers handlers to. Event handlers can be registered or removed through the API to alter any part of generation.
World generation is very modular. Almost all generated parts of the world, such as ore deposits, creatures or trees, are specified via JSON content mods. On a coding level, each stage of generation triggers an event which the base game registers handlers to. Event handlers can be registered or removed through the API to alter any part of generation.
== Content modding ==
== Content modding ==
Using content modding, here are the various things that can be added, modified or removed from world generation. Properties relative to world generation can generally be found under {{Vintagestory/assets/survival/worldgen}}
Using content modding, here are the various things that can be added, modified or removed from world generation. Properties relative to world generation are generally located at <code>Vintagestory/assets/survival/worldgen</code>
=== Moddable content ===
=== Moddable content ===
{| class="wikitable"
{| class="wikitable"