Entity Documentation - minecraft:ambient_sound_interval
minecraft:ambient_sound_interval
will set the entity's delay between playing its ambient sound.
Parameters
Name | Default Value | Type | Description |
---|---|---|---|
event_name | ambient | String | Level sound event to be played as the ambient sound. |
event_names | none | Array | List of dynamic level sound events, with conditions for choosing among them. Evaluated in order, first one wins. If none evaluate to true, 'event_name' will take precedence. |
range | 16.000000 | Decimal | Maximum time in seconds to randomly add to the ambient sound delay time. |
value | 8.000000 | Decimal | Minimum time in seconds before the entity plays its ambient sound again. |
Example
"minecraft:ambient_sound_interval":{
"priority": 2,
"event_name": "ambient",
"range": 16.0,
"value": 8.0
}
Vanilla entities examples
witch
"minecraft:ambient_sound_interval": {
"value": 2.0,
"range": 4.0,
"event_name": "ambient.in.raid"
}
Vanilla entities using minecraft:ambient_sound_interval
Feedback
https://aka.ms/ContentUserFeedback.
Coming soon: Throughout 2024 we will be phasing out GitHub Issues as the feedback mechanism for content and replacing it with a new feedback system. For more information see:Submit and view feedback for