Skip to content

Worldgen JSON Syntax

Archengius edited this page May 9, 2018 · 19 revisions

Root config structure

Each world gen definition config consists of following parts:

  • weight - weight of this ore definition compared to other veins. The higher this value, the more this veins occurs in place of other ore veins. Completely custom, any positive integer values are allowed.
  • density - defines relation of amount of ore blocks in vein to it's total size. Ranges in (0;1] decimal. The more it is, the more ore blocks this vein contains in it's shape.
  • priority (optional) - defines generation priority of this ore vein. Veins with bigger values are generated first, if multiple veins are encouraged in grid section. Useful for granite formations.
  • min_height (optional) - defines minimum height requirement for generation of this ore vein. It will generate only if center of vein is above this value. By default, minimum height is not limited.
  • max_height (optional) - defines maximum height requirement for generation of this ore vein. It will generate only if center of vein is below this value. By default, maximum height is not limited.
  • biome_modifier (optional) - defines map of weight modifier applied to this ore weight if given biome or biome tag is encouraged. If weight value plus this modifier for biome is below or equal to zero, vein will not be generated. By default, biome doesn't affect weight of this vein. For more information, see below.
  • dimension_filter (optional) - defines filter of dimensions in which this ore vein is allowed to generate. By default, this vein will generate in all surface worlds. For more information, see below.
  • filler - defines structure of blocks generated in this vein, their layout and types. For more information, see below,
  • generator - defines shape of vein, it's minimal and maximal sizes, special generation flags.

Biome