Modify Hurt Sound#
Since v1.0.0
Modifies the sound played when the entity that has the power takes damage.
Type ID: voile:modify_hurt_sound
Fields#
Field | Type | Default | Description |
---|---|---|---|
silent |
Boolean | false |
Determines whether the hurt sound is played or not. |
sound |
Identifier | optional | If specified, this sound event is played. |
sounds |
Array of Identifiers | optional | If specified, a random sound event from this array is played. |
volume |
Float | 1.0 |
The volume of the sound event(s). |
pitch |
Float | 1.0 |
The pitch of the sound event(s). |
Examples#
{
"type": "voile:modify_hurt_sound",
"sound": "minecraft:entity.ghast.hurt"
}
This example will replace the hurt sound of the entity that has the power with the minecraft:entity.ghast.hurt
sound event.