BiomeModifications

public final class BiomeModifications

Provides an API to modify Biomes after they have been loaded and before they are used in the World.

Any modifications made to biomes will not be available for use in server.properties (as of 1.16.1), or the demo level.

Experimental feature, may be removed or changed without further notice.

Functions

addCarver
Link copied to clipboard
static void addCarver(Predicate<BiomeSelectionContext> biomeSelector, GenerationStep.Carver step, RegistryKey<ConfiguredCarver<? extends Object>> configuredCarverKey)
Convenience method to add a carver to one or more biomes.
addFeature
Link copied to clipboard
static void addFeature(Predicate<BiomeSelectionContext> biomeSelector, GenerationStep.Feature step, RegistryKey<ConfiguredFeature<? extends Object, ? extends Object>> configuredFeatureKey)
Convenience method to add a feature to one or more biomes.
addSpawn
Link copied to clipboard
static void addSpawn(Predicate<BiomeSelectionContext> biomeSelector, SpawnGroup spawnGroup, EntityType<? extends Object> entityType, int weight, int minGroupSize, int maxGroupSize)
Convenience method to add an entity spawn to one or more biomes.
addStructure
Link copied to clipboard
static void addStructure(Predicate<BiomeSelectionContext> biomeSelector, RegistryKey<ConfiguredStructureFeature<? extends Object, ? extends Object>> configuredStructureKey)
Convenience method to add a structure to one or more biomes.
create
Link copied to clipboard
static BiomeModification create(Identifier id)
Create a new biome modification which will be applied whenever biomes are loaded from datapacks.

Sources

jvm source
Link copied to clipboard