Playsound Command Generator — /playsound Source, Volume & Pitch (Java Edition)
Run these from an operator’s chat, a command block, or a function file. Execute is simplified here — chain the rows in the order you want them to run.
How to Use the Playsound Command Generator
- Open the Playsound tab.
- Enter the sound event’s namespaced ID, e.g.
minecraft:entity.experience_orb.pickup. - Pick a sound source category –
master,music,record,weather,block,hostile,neutral,player,ambient,voice, orui– this decides which of the player’s volume sliders controls it. - Enter the target (who hears it) and the position it appears to come from.
- Set volume, pitch, and minimum volume (how audible it stays at maximum distance).
- Copy the generated
/playsoundcommand into a command block, function, or an operator’s chat.
Command Syntax Reference
/playsound <sound> <source> <targets> [<x> <y> <z> [<volume> [<pitch> [<minVolume>]]]]
The source argument maps a sound onto one of the client’s in-game volume category sliders (Options → Music & Sounds) – hostile and neutral map to mob sounds, block to block interaction sounds, record to jukeboxes/note blocks, ambient to cave/environment noises, voice to things like villager speech, ui to menu clicks, and master ignores the category sliders and always plays at full relative volume. volume above 1 increases the sound’s audible range (each whole number roughly doubles the range in blocks) rather than making it louder up close. pitch (roughly 0.5–2.0) speeds up or slows down playback, changing perceived pitch. minVolume sets a floor – a quiet fallback volume so listeners outside the sound’s normal falloff range still faintly hear it instead of nothing.
Frequently Asked Questions
What does the source category actually change, if the sound itself is the same?
It determines which of the player’s separate volume sliders (found in Options → Music & Sounds) scales that particular sound down or mutes it – a player who’s turned their Hostile Creatures slider to zero won’t hear a sound played with source hostile, even though the same sound played with source master would ignore that slider entirely and always play.
Does increasing volume past 1 make the sound louder, or does something else happen?
It primarily extends the sound’s audible range rather than boosting loudness up close – a volume of 4, for instance, lets players roughly four times farther away still hear it, compared to how the sound normally falls off with distance. It’s the range knob more than a loudness knob.
What’s a sensible pitch range, and what happens outside it?
Pitch typically behaves predictably between about 0.5 (noticeably slower/lower) and 2.0 (noticeably faster/higher); values outside that range are still accepted but produce increasingly extreme, often less musical results as playback speed stretches further from normal.
What’s the point of minVolume if the sound already has a normal falloff range?
Without it, a listener standing outside the sound’s normal audible radius hears nothing at all once distance falloff reaches zero. minVolume sets a floor so it never quite reaches silence – useful for ambient or notification sounds you want faintly audible across a much larger area than the sound’s natural falloff would otherwise allow.
Can I target a specific sound at just one player instead of everyone nearby?
Yes – the targets argument is a normal selector, so a specific player name or a narrow selector like @p plays the sound for just that one listener, which is the standard way to give private audio feedback (like a UI confirmation chime) without everyone else in earshot hearing it too.
Related Tools
- Stopsound Command Generator – silence a sound you started, filtered by target, source, or specific sound.
- Particle Command Generator – pair a sound cue with a matching visual particle effect.
- Execute Command Generator – play a sound at an entity’s exact position using
execute at.