Play Any Sound for Players at Custom Positions
The /playsound command lets you trigger any built-in or custom sound effect in Minecraft Java Edition. You can pick which audio channel it uses, who hears it, where it comes from in the world, and how loud or high-pitched it sounds.
Map makers and server operators use this command to add audio cues, background music, or custom alerts to builds and minigames. You need permission level 2 (operator status, or cheats enabled in single-player) to run it.
/playsound <sound>/playsound <sound> ambient/playsound <sound> ambient <targets>/playsound <sound> ambient <targets> <pos>/playsound <sound> ambient <targets> <pos> <volume>/playsound <sound> ambient <targets> <pos> <volume> <pitch> [<minVolume>]/playsound <sound> block/playsound <sound> block <targets>/playsound <sound> block <targets> <pos>/playsound <sound> block <targets> <pos> <volume>/playsound <sound> block <targets> <pos> <volume> <pitch> [<minVolume>]/playsound <sound> hostile/playsound <sound> hostile <targets>/playsound <sound> hostile <targets> <pos>/playsound <sound> hostile <targets> <pos> <volume>/playsound <sound> hostile <targets> <pos> <volume> <pitch> [<minVolume>]/playsound <sound> master/playsound <sound> master <targets>/playsound <sound> master <targets> <pos>/playsound <sound> master <targets> <pos> <volume>/playsound <sound> master <targets> <pos> <volume> <pitch> [<minVolume>]/playsound <sound> music/playsound <sound> music <targets>/playsound <sound> music <targets> <pos>/playsound <sound> music <targets> <pos> <volume>/playsound <sound> music <targets> <pos> <volume> <pitch> [<minVolume>]/playsound <sound> neutral/playsound <sound> neutral <targets>/playsound <sound> neutral <targets> <pos>/playsound <sound> neutral <targets> <pos> <volume>/playsound <sound> neutral <targets> <pos> <volume> <pitch> [<minVolume>]/playsound <sound> player/playsound <sound> player <targets>/playsound <sound> player <targets> <pos>/playsound <sound> player <targets> <pos> <volume>/playsound <sound> player <targets> <pos> <volume> <pitch> [<minVolume>]/playsound <sound> record/playsound <sound> record <targets>/playsound <sound> record <targets> <pos>/playsound <sound> record <targets> <pos> <volume>/playsound <sound> record <targets> <pos> <volume> <pitch> [<minVolume>]/playsound <sound> ui/playsound <sound> ui <targets>/playsound <sound> ui <targets> <pos>/playsound <sound> ui <targets> <pos> <volume>/playsound <sound> ui <targets> <pos> <volume> <pitch> [<minVolume>]/playsound <sound> voice/playsound <sound> voice <targets>/playsound <sound> voice <targets> <pos>/playsound <sound> voice <targets> <pos> <volume>/playsound <sound> voice <targets> <pos> <volume> <pitch> [<minVolume>]/playsound <sound> weather/playsound <sound> weather <targets>/playsound <sound> weather <targets> <pos>/playsound <sound> weather <targets> <pos> <volume>/playsound <sound> weather <targets> <pos> <volume> <pitch> [<minVolume>]/playsound <sound>/playsound <sound> master <targets>/playsound <sound> ambient <targets> <pos>/playsound <sound> block <targets> <pos> <volume>/playsound <sound> hostile <targets> <pos> <volume> <pitch> [<minVolume>]/playsound <sound> music <targets> <pos> <volume> <pitch> [<minVolume>]/playsound <sound> player <targets> <pos> <volume> <pitch> [<minVolume>]| Argument | Type | What it means |
|---|---|---|
<sound> | resource ID | The namespaced resource ID of the sound you want to play. |
<targets> | target selector players only | The player name, UUID, or player-only target selector (such as @p, @a, or @s) that will hear the sound. |
<pos> | position | The x, y, and z coordinates where the sound originates, supporting decimals as well as ~ and ^ notation. |
<volume> | decimal number at least 0.0 | A decimal number of at least 0.0 that sets the loudness of the sound. |
<pitch> | decimal number 0.0 to 2.0 | A decimal number from 0.0 to 2.0 that controls the pitch and speed of the sound. |
<minVolume> | decimal number 0.0 to 1.0 | An optional decimal number from 0.0 to 1.0 that sets the minimum volume for players outside the normal hearing range. |
/playsound minecraft:entity.experience_orb.pickupPlays the experience orb pickup sound using the simplest command form made available in version 1.20.5.
/playsound minecraft:block.note_block.pling master @pPlays a note block pling sound on the master channel for the nearest player.
/playsound minecraft:entity.creeper.primed hostile @a ~ ~ ~Plays a creeper hiss on the hostile channel for all players right at the command execution location.
/playsound minecraft:block.anvil.land block @s 100 64 -200 1.5Plays an anvil landing sound on the block channel for the player running the command at coordinates 100, 64, -200 with a volume of 1.5.
/playsound minecraft:ambient.cave ambient @r ~5 ~ ~-5 0.8 0.5Plays a low-pitched cave sound on the ambient channel for a random player at an offset position with 0.8 volume and 0.5 pitch.
/playsound minecraft:entity.player.levelup player Steve ^ ^ ^3 1.0 1.8 0.2Plays a high-pitched level-up sound on the player channel for Steve three blocks in front of the execution point, with a minimum volume of 0.2.
/playsound minecraft:entity.villager.yes neutral @a[distance=..15] 0.5 70.0 0.5 2.0 1.2 0.5Plays a villager sound on the neutral channel for all players within 15 blocks of the target coordinates with volume 2.0, pitch 1.2, and minimum volume 0.5.
/playsound minecraft:music_disc.cat record @p[tag=winner] -45 80 120 1.0Plays the cat music disc on the record channel at coordinates -45, 80, 120 for the nearest player with the winner tag.
Measured from the game files of every Java release from 1.13 to 26.3.
+ /playsound <sound> ui+ /playsound <sound> ui <targets>+ /playsound <sound> ui <targets> <pos>+ /playsound <sound> ui <targets> <pos> <volume>+ /playsound <sound> ui <targets> <pos> <volume> <pitch> [<minVolume>]+ /playsound <sound>+ /playsound <sound> ambient+ /playsound <sound> block+ /playsound <sound> hostile+ /playsound <sound> master+ /playsound <sound> musicand 5 moreBedrock Edition also includes the /playsound command, but it does not use a sound channel argument like master or ambient; instead, its syntax goes directly from the sound name to the target and position: /playsound <sound: string> [player: target] [position: x y z] [volume: float] [pitch: float] [minimumVolume: float].
You need permission level 2, which means you must be a server operator or have cheats turned on in your single-player world.
No, starting in Java Edition 1.20.5, you can simply run /playsound <sound> or /playsound <sound> <source> without typing targets, coordinates, or volume numbers.
In Minecraft Java Edition, the <pitch> argument only accepts decimal values from 0.0 to 2.0, so any number above 2.0 is rejected.