Skip to content

Biome Placement

gniftygnome edited this page Oct 2, 2024 · 16 revisions

API options

Biome placement can be configured in code by calling the static methods of com.terraformersmc.biolith.api.biome.BiomePlacement during the mod initialization phase. It can also be configured via datapack JSON in ( ) data/{name}/biolith/biome_placement/*.json ( ⚠️ v3.1+; see here for the pre-3.1 version ).

The JSON file's top level contains lists of the four types of biome placement; see Example below for a complete example.

API methods

  • Biomes can be added to multi-noise placement at specified noise hypercubes.

  • Biomes can be completely removed from multi-noise placement.

  • Multi-noise biomes can be replaced at a specified proportion of their vanilla range.

  • Sub-biomes (v2) can replace multi-noise or replacement biomes based on a variety of matchers.

Example

{
  "additions": [
    {
      "dimension": "minecraft:overworld",
      "biome": "minecraft:crimson_forest",
      "noise": {
        "temperature": { "min": -1.0, "max": -0.15 },
        "humidity": { "min": -1.0, "max": -0.35 },
        "continentalness": { "min": 0.3, "max": 1.0 },
        "erosion": { "min": -0.375, "max": 0.05 },
        "depth": { "min": 0.0, "max": 0.0 },
        "weirdness": { "min": 0.0, "max": 1.0 },
        "offset": 0.0
      }
    }
  ],
  "removals": [
    {
      "dimension": "minecraft:overworld",
      "biome": "minecraft:cherry_grove"
    }
  ],
  "replacements": [
    {
      "dimension": "minecraft:overworld",
      "target": "minecraft:plains",
      "biome": "minecraft:warped_forest",
      "proportion": 0.5
    },
    {
      "dimension": "minecraft:the_nether",
      "target": "minecraft:warped_forest",
      "biome": "minecraft:end_highlands"
    },
    {
      "dimension": "minecraft:the_end",
      "target": "minecraft:end_highlands",
      "biome": "minecraft:plains"
    }
  ],
  "sub_biomes": [
    {
      "dimension": "minecraft:overworld",
      "target": "minecraft:desert",
      "biome": "minecraft:old_growth_pine_taiga",
      "criterion": {
        "type": "biolith:ratio",
        "target": "center",
        "max": 0.2
      }
    }
  ]
}
Clone this wiki locally