Commands/stopsound

Stops a sound.


 * Syntax


 * Java Edition


 * Bedrock Edition


 * Arguments


 * player (BE: 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 (BE: sound: string) (optional)
 * Specifies the sound to stop. Must be a sound event defined in sounds.json (sound_definitions.json in Bedrock Edition) (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.