Play Sound

Entity Action Type

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.0 The volume of the sound.
pitch Float 1.0 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.