play_sound

Plays a sound to the triggering player at their location.

Categories: sound

Required arguments

Key(s)DescriptionType
soundThe sound to play. Supports Minecraft sound names and resource pack sounds.SOUND
pitchThe pitch of the sound, between 0.5 and 2.0. Supports expressions.EXPRESSION
volumeThe volume of the sound. Supports expressions.EXPRESSION

Optional arguments

Key(s)DescriptionTypeDefault
categoryThe sound category to play the sound in.STRINGMASTER

Trigger parameters required

  • PLAYER

Example

effects:
  - id: play_sound
    args:
      sound: <value>
      pitch: <value>
      volume: <value>
      category: <value> # ← Optional

Behaviour

SettingValue
Run orderNORMAL
Supports delaytrue
Reloads on plugin reloadtrue