Minecraft: Story Mode has now been discontinued. If you already own a copy, make sure you download it before June 25 before the servers go offline, or else you may not be able to in the future. See here for more details.

Commands/stopsound

From Minecraft Wiki
Jump to: navigation, search
stopsound
Restrictions

Operator

First introduced

Java Edition 1.9.3 (Java Edition 1.9.3-pre2)
PE 1.0.5 (PE alpha 1.0.5.0)

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.


History[edit]

Java Edition
1.9.3pre2Added /stopsound.
Pocket Edition
1.0.5alpha 1.0.5.0Added /stopsound.