Play Sound
Plays a sound event at the entity's position. Currently only works on player entities.
Type ID: origins:play_sound
Fields
| Field | Type | Default | Description |
|---|---|---|---|
sound |
Identifier | The namespace and ID of the sound to play. | |
volume |
Float | 1 |
The volume of the sound. |
pitch |
Float | 1 |
The pitch of the sound. |
Examples
"entity_action": {
"type": "origins:play_sound",
"sound": "minecraft:entity.chicken.egg"
}
This example will play the minecraft:entity.chicken.egg sound event at the entity's position.