addBiomeVariant

static void addBiomeVariant(RegistryKey<Biome> replaced, RegistryKey<Biome> variant, double chance, Array<OverworldClimate> climates)

Adds a 'variant' biome which replaces another biome on occasion.

For example, addBiomeVariant(Biomes.JUNGLE, Biomes.DESERT, 0.2) will replace 20% of jungles with deserts.This method is rather useful for replacing biomes not generated through standard methods, such as oceans,deep oceans, jungles, mushroom islands, etc. When replacing ocean and deep ocean biomes, one must specifythe biome without temperature (Biomes.OCEAN / Biomes.DEEP_OCEAN) only, as ocean temperatures have not beenassigned; additionally, one must not specify climates for oceans, deep oceans, or mushroom islands, as they do not haveany climate assigned at this point in the generation.

Parameters

replaced

the base biome that is replaced by a variant

variant

the biome to be added as a variant

chance

the chance of replacement of the biome into the variant

climates

the climates in which the variants will occur in (none listed = add variant to all climates)

Sources

jvm source
Link copied to clipboard