Commands/stopsound

From Minecraft Wiki
Jump to: navigation, search
stopsound
Restrictions

Operator

First introduced

1.9.3 (1.9.3-pre2)
PE 1.0.5 (PE 1.0.5 build 1)

Stops a sound.

Syntax
  • Java Edition
stopsound <player> [source] [sound]
  • Bedrock Edition
stopsound <player: target> [sound: string]
Arguments
player (BE: player: target)
Specifies the sound's target. Must be a player name or a target selector.
source (optional)[Java Edition only]
Specifies which category in the music & sound options the sound falls under. Must be master, music, record, weather, block, hostile, neutral, player, ambient, or voice.
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, mob.pig.say). 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.


Promotional Content