Commands/stopsound

Stops a given sound.

Syntax

 * Java Edition


 * Bedrock Edition

Arguments

 * player (player: target $$)
 * Specifies the sound's target. Must be a player name or a target selector.


 * source (optional)
 * Specifies which category in the Music & Sound options the sound falls under. Must be,  ,  ,  ,  ,  ,  ,  ,  , or.


 * sound (sound: string $$) (optional)
 * Specifies the sound to stop. Must be a sound event defined in sounds.json $$ or sound_definitions.json $$ (for example, ). If no sound if specified, stops all sounds.

Result
Fails if the arguments are not specified correctly, or if player fails to resolve to one or more online players.

On success, stop the specified sound(s) for the targeted players.