Play a sound to yourself
/playsound minecraft:entity.player.levelupThe shortest form: you hear the level up sound.

/playsound plays a game sound to chosen players, at the position, volume and pitch you pick. It adds feedback to maps and minigames: a level up chime for a reward, a raid horn for an alarm, or a music disc playing from a precise spot.
/playsound <sound> [ambient|block|hostile|master|music|neutral|player|record|ui|voice|weather]| Argument | Expects | What it does |
|---|---|---|
| sound | Resource ID | Sound ID such as minecraft:entity.player.levelup. A wrong ID is accepted but plays nothing. |
| targetsoptional | Player selectorone or several | Players who hear the sound: @a, @p, @s or a name. Without it, the player running the command. |
| posoptional | Position (x y z) | Where the sound comes from, like ~ ~ ~ or 0 64 0. By default, the position of the command. |
| volumeoptional | Numberat least 0 | Above 1, the sound reaches further but is not louder. 1 is the normal volume. |
| pitchoptional | Number0 to 2 | From 0 to 2. 1 is normal, 2 is one octave higher, lower values sound deeper. |
| minVolumeoptional | Number0 to 1 | From 0 to 1. Volume for players outside the normal range; 0 means they hear nothing. |
/playsound minecraft:entity.player.levelupThe shortest form: you hear the level up sound.
/playsound minecraft:block.note_block.pling record @a ~ ~ ~ 1 2A high pitched note block sound for every player in range.
/playsound minecraft:event.raid.horn hostile @a ~ ~ ~ 1 1 1With minVolume set to 1, every player hears the raid horn, even far away.
/execute as @a at @s run playsound minecraft:entity.experience_orb.pickup player @s ~ ~ ~Each player hears the experience sound at their own position.
/playsound minecraft:music_disc.cat record @a 0 64 0 4Plays the cat disc from 0 64 0, audible from further away thanks to volume 4.
Fill in the fields, then copy the command.
Command generatorThe sound is an ID such as minecraft:entity.player.levelup or minecraft:block.note_block.pling, and the autocomplete lists them all. A wrong ID is not refused, but nothing plays. The category after the ID decides which volume slider of Music & Sounds applies: master, music, record (Jukebox/Note Blocks), weather, block, hostile, neutral, player, ambient, voice or ui.
A volume above 1 does not make the sound louder: it widens the distance at which players hear it. Pitch goes from 0 to 2, with 1 as the normal pitch. Players outside the range hear nothing unless you set minVolume, which gives them the sound at that volume. If no target can hear it, the game answers The sound is too far away to be heard. Without pos, the sound comes from where the command runs.
Use /execute to play a sound at each player: execute as @a at @s run playsound ... @s ~ ~ ~. Cut a long sound with /stopsound, and pair sounds with /particle or /title for clear feedback. Sounds of a Note Block or a Jukebox belong to the record category.
✓ Checked in Java Edition 26.3 · updated 2 November 2026
Check the sound ID, the distance to pos and the volume slider of the chosen category. If the target is far away, raise the volume or set minVolume to 1.
Set minVolume to 1, as in /playsound minecraft:event.raid.horn master @a ~ ~ ~ 1 1 1. Players outside the normal range then hear it at full volume.
Type it in the chat with cheats on: /playsound <sound> [ambient|block|hostile|master|music|neutral|player|record|ui|voice|weather].
Cheats on, or operator level 2.
/stopsoundCheats/particleCheats/sayCheats/msgEveryone/meEveryone/tellrawCheats/titleCheats/teammsgEveryone