Skip to main content

/playsound

Plays a sound effect to one or more players. Supports all vanilla and custom sounds with volume and pitch control.

Category
Logic
Permission Level
Game Master
Version Added
1.6

Syntax

/playsound <sound> <source> <targets> [<pos>] [<volume>] [<pitch>] [<minVolume>]

Parameters

NameTypeRequiredDescription
soundresourceRequiredThe sound event to play (e.g., entity.experience_orb.pickup).
sourceliteralRequiredThe sound category: master, music, record, weather, block, hostile, neutral, player, ambient, voice.
targetsentityRequiredThe player(s) who hear the sound.
posvec3OptionalThe position the sound originates from. Defaults to the target's position.
volumefloatOptionalThe volume (0.0+). Values above 1.0 increase hearing range, not actual loudness.
pitchfloatOptionalThe pitch (0.0-2.0). 1.0 is normal. Default is 1.0.
minVolumefloatOptionalMinimum volume for players outside the normal range (0.0-1.0).

Examples

/playsound minecraft:entity.experience_orb.pickup player @a

Plays the experience orb pickup sound to all players.

/playsound minecraft:entity.ender_dragon.growl hostile @p ~ ~ ~ 1 0.5

Plays the ender dragon growl at half pitch to the nearest player.

/playsound minecraft:block.note_block.harp record @a ~ ~ ~ 1 1.5

Plays a harp note at 1.5 pitch to all players.

Common Mistakes

Notes

Volume values above 1.0 extend the range at which the sound can be heard (range = volume * 16 blocks) but do not make it louder. The source category (master, music, etc.) determines which in-game volume slider affects the sound.

Related Commands

/stopsound/particle/title

Need a Minecraft server?

Try these commands on Astroworld or host your own server.

Try Astroworld Hosting