- 
                Notifications
    You must be signed in to change notification settings 
- Fork 3
Sub‐Biome Placement
        gniftygnome edited this page Jun 24, 2024 
        ·
        22 revisions
      
    ℹ️ This documentation is for Biolith version 3.  For Biolith version 2, go here.
ℹ️ For information on upgrading from Biolith 2 to Biolith 3, go here.
Adding a sub-biome requires the relevant dimension key, the biome key of the target biome to replace, the biome key of the biome to replace it with, and a criterion indicating the conditions for replacement of the target biome. Sub-biomes can target replacement biomes as well as vanilla/data biomes.
- Methods:  addSubOverworld,addSubNether,addSubEnd
- See also: criterion
// Adding Old Growth Pine Taiga as a sub-biome in the noise-based center of the Desert biome.
BiomePlacement.addSubOverworld(
        BiomeKeys.DESERT,
        BiomeKeys.OLD_GROWTH_PINE_TAIGA,
        CriterionBuilder.ratioMax(
                RatioTargets.CENTER,
                0.2f));
// Adding our End midlands biome adjacent to its matching highlands biome.
BiomePlacement.addSubEnd(
        BiomeKeys.END_MIDLANDS,
        midlands,
        CriterionBuilder.alternate(
                highlands,
                BiomeKeys.END_HIGHLANDS));
// Adding a forest clearing sub-biome to a forest, based on PV noise.
BiomePlacement.addSubOverworld(
        myforest,
        myclearing,
        CriterionBuilder.deviationMin(
                BiomeParameterTargets.PEAKS_VALLEYS,
                0.05d));- Multiple sub-biomes can be specified in the sub_biomeslist.
- See also: criterion
- Adding Old Growth Pine Taiga as a sub-biome in the noise-based center of the Desert biome.
{
  "sub_biomes": [
    {
      "dimension": "minecraft:overworld",
      "target": "minecraft:desert",
      "biome": "minecraft:old_growth_pine_taiga",
      "criterion": {
        "type": "biolith:ratio",
        "target": "center",
        "max": 0.2
      }
    }
  ]
}- Adding our End midlands biome adjacent to its matching highlands biome.
{
  "sub_biomes": [
    {
      "dimension": "minecraft:the_end",
      "target": "minecraft:end_midlands",
      "biome": "mymod:my_midlands",
      "criterion": {
        "type": "biolith:alternate",
        "biome": "mymod:my_highlands",
        "alternate": "minecraft:end_highlands"
      }
    }
  ]
}- Adding a forest clearing sub-biome to a forest, based on PV noise.
{
  "sub_biomes": [
    {
      "dimension": "minecraft:overworld",
      "target": "mymod:forest",
      "biome": "mymod:forest_clearing",
      "criterion": {
        "type": "biolith:deviation",
        "target": "peaks_valleys",
        "min": 0.05
      }
    }
  ]
}