Intro to Worldgen Modifiers - Apollounknowndev/lithostitched GitHub Wiki

Lithostitched introduces worldgen modifiers, a system where datapacks and mods can add, remove and replace values in worldgen files in a compat-friendly way.

Worldgen modifiers are stored in the lithostitched/worldgen_modifier folder of the data/(namespace) folder. This means that a worldgen modifier with the identifier foo:bar is stored in data/foo/lithostitched/worldgen_modifier/bar.json.

Here's an example worldgen modifier:

{
  "type": "lithostitched:remove_features",
  "biomes": "#minecraft:is_overworld",
  "features": [
    "minecraft:disk_sand",
    "minecraft:disk_gravel",
    "minecraft:disk_clay"
  ],
  "step": "underground_ores"
}

All worldgen modifiers have two fields:

  • type: The id of the worldgen modifier type.
  • priority: The priority of the modifier. Modifiers are applied in ascending priority field order (e.g. a modifier with 500 priority will run before one with 2000 priority.
    • Defaults to 1000 for normal modifiers.
    • Defaults to 2000 for remove_* modifiers.

Further fields are defined based on the type field. For the lithostitched:remove_features type, there's three additional fields: biomes, features, and step.