Commands/stopsound

Stops a sound.


 * Syntax


 * Java Edition


 * Pocket Edition


 * Arguments


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