/playsound Command in Minecraft Java Edition

Play Any Sound for Players at Custom Positions

Java EditionSound & VisualsPermission: Level 2Bedrock version →

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.

Syntax (Java 26.3, 56 forms)

  1. /playsound <sound>
  2. /playsound <sound> ambient
  3. /playsound <sound> ambient <targets>
  4. /playsound <sound> ambient <targets> <pos>
  5. /playsound <sound> ambient <targets> <pos> <volume>
  6. /playsound <sound> ambient <targets> <pos> <volume> <pitch> [<minVolume>]
  7. /playsound <sound> block
  8. /playsound <sound> block <targets>
  9. /playsound <sound> block <targets> <pos>
  10. /playsound <sound> block <targets> <pos> <volume>
  11. /playsound <sound> block <targets> <pos> <volume> <pitch> [<minVolume>]
  12. /playsound <sound> hostile
  13. /playsound <sound> hostile <targets>
  14. /playsound <sound> hostile <targets> <pos>
  15. /playsound <sound> hostile <targets> <pos> <volume>
  16. /playsound <sound> hostile <targets> <pos> <volume> <pitch> [<minVolume>]
  17. /playsound <sound> master
  18. /playsound <sound> master <targets>
  19. /playsound <sound> master <targets> <pos>
  20. /playsound <sound> master <targets> <pos> <volume>
  21. /playsound <sound> master <targets> <pos> <volume> <pitch> [<minVolume>]
  22. /playsound <sound> music
  23. /playsound <sound> music <targets>
  24. /playsound <sound> music <targets> <pos>
  25. /playsound <sound> music <targets> <pos> <volume>
  26. /playsound <sound> music <targets> <pos> <volume> <pitch> [<minVolume>]
  27. /playsound <sound> neutral
  28. /playsound <sound> neutral <targets>
  29. /playsound <sound> neutral <targets> <pos>
  30. /playsound <sound> neutral <targets> <pos> <volume>
  31. /playsound <sound> neutral <targets> <pos> <volume> <pitch> [<minVolume>]
  32. /playsound <sound> player
  33. /playsound <sound> player <targets>
  34. /playsound <sound> player <targets> <pos>
  35. /playsound <sound> player <targets> <pos> <volume>
  36. /playsound <sound> player <targets> <pos> <volume> <pitch> [<minVolume>]
  37. /playsound <sound> record
  38. /playsound <sound> record <targets>
  39. /playsound <sound> record <targets> <pos>
  40. /playsound <sound> record <targets> <pos> <volume>
  41. /playsound <sound> record <targets> <pos> <volume> <pitch> [<minVolume>]
  42. /playsound <sound> ui
  43. /playsound <sound> ui <targets>
  44. /playsound <sound> ui <targets> <pos>
  45. /playsound <sound> ui <targets> <pos> <volume>
  46. /playsound <sound> ui <targets> <pos> <volume> <pitch> [<minVolume>]
  47. /playsound <sound> voice
  48. /playsound <sound> voice <targets>
  49. /playsound <sound> voice <targets> <pos>
  50. /playsound <sound> voice <targets> <pos> <volume>
  51. /playsound <sound> voice <targets> <pos> <volume> <pitch> [<minVolume>]
  52. /playsound <sound> weather
  53. /playsound <sound> weather <targets>
  54. /playsound <sound> weather <targets> <pos>
  55. /playsound <sound> weather <targets> <pos> <volume>
  56. /playsound <sound> weather <targets> <pos> <volume> <pitch> [<minVolume>]

The forms you will use most

/playsound <sound>
Plays a sound right away using the default settings.
/playsound <sound> master <targets>
Plays a sound on the master audio channel for the selected players.
/playsound <sound> ambient <targets> <pos>
Plays a sound on the ambient channel for selected players from a specific block coordinate.
/playsound <sound> block <targets> <pos> <volume>
Plays a sound on the block channel for selected players at a position with a custom volume.
/playsound <sound> hostile <targets> <pos> <volume> <pitch> [<minVolume>]
Plays a sound on the hostile channel with custom targets, position, volume, pitch, and an optional minimum volume.
/playsound <sound> music <targets> <pos> <volume> <pitch> [<minVolume>]
Plays a sound on the music channel with full control over targets, location, volume, pitch, and minimum volume.
/playsound <sound> player <targets> <pos> <volume> <pitch> [<minVolume>]
Plays a sound on the player channel with custom position, volume, pitch, and optional minimum volume settings.

Arguments

ArgumentTypeWhat it means
<sound>resource IDThe 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>positionThe 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.

Examples

Version history

Measured from the game files of every Java release from 1.13 to 26.3.

  1. 1.21.6 Syntax changed.
    + /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>]
  2. 1.20.5 Syntax changed.
    + /playsound <sound>+ /playsound <sound> ambient+ /playsound <sound> block+ /playsound <sound> hostile+ /playsound <sound> master+ /playsound <sound> musicand 5 more
  3. 1.13 Already in the game in 1.13, the oldest Java version we track.

Tips

Common mistakes

Java vs Bedrock

Bedrock 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].

See /playsound in Bedrock Edition →

FAQ

What permission level do I need to use /playsound?

You need permission level 2, which means you must be a server operator or have cheats turned on in your single-player world.

Do I have to type the full command with coordinates and volume every time?

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.

Why did my /playsound command fail when I set the pitch to 3.0?

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.

Related commands

/particle/posteffect/stopsound

More on 9Minecraft