GameplayJavaBedrock
/playsound
Plays a registered sound event to one or more players, with control over the mixer source (master, music, record, hostile, etc.), position, volume, pitch, and minimum volume for out-of-range listeners. Volume above 1.0 increases the audible radius rather than loudness.
Syntax
Parameters
- sound
- sound ID
- e.g. minecraft:entity.ender_dragon.growl.
- source
- literal
- Mixer category: master, music, record, weather, block, hostile, neutral, player, ambient, voice.
- targets
- entity selector
- Players who hear the sound.
- volumeoptional
- float
- >1 widens the radius; default 1.
- pitchoptional
- float
- 0.0–2.0, default 1.
Examples
Play the dragon growl for everyone.
High-pitched note block pling for yourself.
Permission level
/playsound requires Cheats (op level 2). In single-player you need the world's "Allow Cheats" toggle on. On a multiplayer server you need to be opped — see /op.