Skip to content

Biome Replacement

gniftygnome edited this page Mar 27, 2024 · 14 revisions

Replace Biomes

Replacements require the relevant dimension key, the biome key of the target biome to replace, the biome key of the biome to replace it with, and optionally the proportion of replacement (between 0.0 and 1.0; defaults to 1.0).

in code

  • Methods: replaceOverworld, replaceNether, replaceEnd
BiomePlacement.replaceOverworld(BiomeKeys.PLAINS, BiomeKeys.WARPED_FOREST, 0.5d);
BiomePlacement.replaceNether(BiomeKeys.WARPED_FOREST, BiomeKeys.END_HIGHLANDS);
BiomePlacement.replaceEnd(BiomeKeys.END_HIGHLANDS, BiomeKeys.PLAINS);

as data

  • Multiple replacements can be specified in the replacements list.
{
  "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"
    }
  ]
}
Clone this wiki locally