ambientAdditionsSound

fun ambientAdditionsSound(additionsSettings: AmbientAdditionsSettings)

Sets the ambientAdditionsSettings setting of the biome's special effects. This setting is used to add ambient sounds to the biome. The sound is played each tick at the probability defined at AmbientAdditionsSettings.tickChance. To disable ambient sounds again, use disableAmbientAdditionsSound.


fun ambientAdditionsSound(soundEvent: SoundEvent, tickProbability: Double)

Sets the ambientAdditionsSettings setting of the biome's special effects by creating a new AmbientAdditionsSettings instance out of the given soundEvent and tickProbability. To disable ambient sounds again, use disableAmbientAdditionsSound.


fun ambientAdditionsSound(soundEvent: Holder<SoundEvent>, tickProbability: Double)

Sets the ambientAdditionsSettings setting of the biome's special effects by creating a new AmbientAdditionsSettings instance out of the given soundEvent and tickProbability. The Holder can either already contain the SoundEvent, or be set later by the SoundEvent Registry. To disable ambient sounds again, use disableAmbientAdditionsSound.


fun ambientAdditionsSound(soundEventId: ResourceLocation, tickProbability: Double)

Sets the ambientAdditionsSettings setting of the biome's special effects by creating a new AmbientAdditionsSettings instance out of the given soundEventId and tickProbability. If the SoundEvent is not yet registered, an empty Holder will be created and the SoundEvent will be set later by the SoundEvent Registry. To disable ambient sounds again, use disableAmbientAdditionsSound.