Enum BiomeModifierOperation
#[non_exhaustive]pub enum BiomeModifierOperation {
AddFeatures {
features: Vec<String>,
step: String,
},
RemoveFeatures {
features: Vec<String>,
steps: Vec<String>,
},
AddSpawns {
spawners: Vec<BiomeModifierSpawner>,
},
RemoveSpawns {
entity_types: Vec<String>,
},
AddSpawnCosts {
entity_types: Vec<String>,
energy_budget: f64,
charge: f64,
},
RemoveSpawnCosts {
entity_types: Vec<String>,
},
AddCarvers {
carvers: Vec<String>,
},
RemoveCarvers {
carvers: Vec<String>,
},
ModifyBiome {Show 17 fields
temperature: Option<f64>,
downfall: Option<f64>,
has_precipitation: Option<bool>,
temperature_modifier: Option<String>,
sky_color: Option<u32>,
fog_color: Option<u32>,
water_color: Option<u32>,
water_fog_color: Option<u32>,
foliage_color: Option<BiomeColourChange>,
dry_foliage_color: Option<BiomeColourChange>,
grass_color: Option<BiomeColourChange>,
ambient_particles: Option<Vec<BiomeAmbientParticle>>,
ambient_loop: Option<String>,
ambient_additions: Option<Vec<BiomeAmbientAddition>>,
ambient_mood: Option<BiomeAmbientMood>,
background_music: Option<BiomeMusic>,
music_volume: Option<f64>,
},
}Expand description
What a biome modifier does to its biomes.
Variants (Non-exhaustive)§
This enum is marked as non-exhaustive
AddFeatures
add_features: append placed features to one generation step.
Fields
RemoveFeatures
remove_features: take placed features out of generation steps.
Fields
AddSpawns
add_spawns: append spawners to their entity types’ spawn categories.
Fields
spawners: Vec<BiomeModifierSpawner>The spawners to add.
RemoveSpawns
remove_spawns: take entity types out of every spawn category.
AddSpawnCosts
add_spawn_costs: set the spawn cost of entity types.
Fields
RemoveSpawnCosts
remove_spawn_costs: take entity types out of spawn_costs.
AddCarvers
add_carvers: append configured carvers to the biome’s carvers.
RemoveCarvers
remove_carvers: take configured carvers out of the biome’s carvers.
ModifyBiome
horizon:modify_biome (NeoForge’s MODIFY phase): set single values of the biome, after
every addition and removal. A None leaves the value as it is.
Fields
foliage_color: Option<BiomeColourChange>effects.foliage_color: set it or remove the override.
dry_foliage_color: Option<BiomeColourChange>effects.dry_foliage_color: set it or remove the override.
grass_color: Option<BiomeColourChange>effects.grass_color: set it or remove the override.
ambient_particles: Option<Vec<BiomeAmbientParticle>>minecraft:visual/ambient_particles: replaces the biome’s particles (an empty list
removes them).
ambient_loop: Option<String>loop of minecraft:audio/ambient_sounds. Setting this, ambient_mood or
ambient_additions replaces the biome’s whole ambient sounds value with the ones set.
ambient_additions: Option<Vec<BiomeAmbientAddition>>additions of minecraft:audio/ambient_sounds.
ambient_mood: Option<BiomeAmbientMood>mood of minecraft:audio/ambient_sounds.
background_music: Option<BiomeMusic>default of minecraft:audio/background_music; replaces the whole value, so the
biome’s creative and underwater music go.
Trait Implementations§
§impl Clone for BiomeModifierOperation
impl Clone for BiomeModifierOperation
§fn clone(&self) -> BiomeModifierOperation
fn clone(&self) -> BiomeModifierOperation
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source. Read more