play_sound
Plays a sound to the triggering player at their location.
Categories: sound
Required arguments
| Key(s) | Description | Type |
|---|
sound | The sound to play. Supports Minecraft sound names and resource pack sounds. | SOUND |
pitch | The pitch of the sound, between 0.5 and 2.0. Supports expressions. | EXPRESSION |
volume | The volume of the sound. Supports expressions. | EXPRESSION |
Optional arguments
| Key(s) | Description | Type | Default |
|---|
category | The sound category to play the sound in. | STRING | MASTER |
Trigger parameters required
Example
effects:
- id: play_sound
args:
sound: <value>
pitch: <value>
volume: <value>
category: <value> # ← Optional
Behaviour
| Setting | Value |
|---|
| Run order | NORMAL |
| Supports delay | true |
| Reloads on plugin reload | true |