Toggle menu
Toggle preferences menu
Toggle personal menu
Not logged in
Your IP address will be publicly visible if you make any edits.

Minecraft:Commands/stopsound: Difference between revisions

From SAS Gaming Wiki
SyncBot (talk | contribs)
Fix template calls: add MC/ prefix
SyncBot (talk | contribs)
Sync: updated from Minecraft
Tag: Manual revert
 
Line 4: Line 4:
* 2 {{only|java|short=1}}
* 2 {{only|java|short=1}}
* 1 {{only|bedrock|short=1}}
* 1 {{only|bedrock|short=1}}
|others=Cheat only{{only|bedrock|short=1}}
|others=[[Minecraft:Cheat]] only{{only|bedrock|short=1}}
}}
}}


Stops a given sound.
Stops a given [[Minecraft:sound]].


== Syntax ==
== Syntax ==
Line 16: Line 16:


== Arguments ==
== Arguments ==
{{MC/Argument|targets|entity|player: target|CommandSelector<Player>}}
{{argument|targets|entity|player: target|CommandSelector<Player>}}
: Specifies the command's target.
: Specifies the command's target.
: {{MC/Arg desc|je=entity|amount=multiple|type=players|be=player}}
: {{arg desc|je=entity|amount=multiple|type=players|be=player}}


{{MC/El|je|short=1}}: {{MC/Code|<''source''>}}
{{el|je|short=1}}: {{code|<''source''>}}
: Specifies which category in the Music & Sound options the sound falls under. If it is <code>*</code>, stop sound of all category.
: Specifies which category in the Music & Sound options the sound falls under. If it is <code>*</code>, stop sound of all category.
: Must be <code>master</code>, <code>music</code>, <code>record</code>, <code>weather</code>, <code>block</code>, <code>hostile</code>, <code>neutral</code>, <code>player</code>, <code>ambient</code>, <code>voice</code>, or <code>*</code>.
: Must be <code>master</code>, <code>music</code>, <code>record</code>, <code>weather</code>, <code>block</code>, <code>hostile</code>, <code>neutral</code>, <code>player</code>, <code>ambient</code>, <code>voice</code>, or <code>*</code>.


{{MC/Argument|sound|resource_location|sound: string|basic_string}}
{{argument|sound|resource_location|sound: string|basic_string}}
: Specifies the sound to stop. If no sound is specified, stops all sounds.
: Specifies the sound to stop. If no sound is specified, stops all sounds.
: {{MC/In|bedrock}}, {{lcfirst:{{MC/Arg desc|be=string}}}} Should be a sound event defined in <samp>[[Minecraft:Sounds.json#Bedrock Edition values|sound_definitions.json]]</samp> (for example, <code>mob.pig.say</code>).
: {{IN|bedrock}}, {{lcfirst:{{arg desc|be=string}}}} Should be a sound event defined in <samp>[[Minecraft:Sounds.json#Bedrock Edition values|sound_definitions.json]]</samp> (for example, <code>mob.pig.say</code>).
: {{MC/In|java}}, {{lcfirst:{{MC/Arg desc|je=resource_location}}}} Should be a sound event defined in <samp>[[Minecraft:Sounds.json#Sound events|sounds.json]]</samp> (for example, <code>entity.pig.ambient</code>).
: {{IN|java}}, {{lcfirst:{{arg desc|je=resource_location}}}} Should be a sound event defined in <samp>[[Minecraft:Sounds.json#Sound events|sounds.json]]</samp> (for example, <code>entity.pig.ambient</code>).


== Result ==
== Result ==
Line 40: Line 40:
== Output ==
== Output ==


{{MC/Output table}}
{{Output table}}
{{MC/Output table|edition=je|On fail|0|0|0}}
{{Output table|edition=je|On fail|0|0|0}}
{{MC/Output table|On success|1|1|the number of targeted players}}
{{Output table|On success|1|1|the number of targeted players}}
{{MC/Output table|edition=be|On fail|0}}
{{Output table|edition=be|On fail|0}}
{{MC/Output table|On success|the number of targeted players}}
{{Output table|On success|the number of targeted players}}
{{MC/Output table}}
{{Output table}}


== History ==
== History ==
=== ''Java Edition'' ===
=== ''Java Edition'' ===
{{HistoryTable
{{HistoryTable
|{{MC/HistoryLine|java}}
|{{HistoryLine|java}}
|{{HistoryLine||1.9.3|dev=pre2|Added {{MC/Cmd|stopsound|link=none}}.}}
|{{HistoryLine||1.9.3|dev=pre2|Added {{cmd|stopsound|link=none}}.}}
|{{MC/HistoryLine||1.13|dev=17w45a|<code>*</code> can now be used instead of <code>source</code> to stop all sounds with a certain name, across all sources.}}
|{{HistoryLine||1.13|dev=17w45a|<code>*</code> can now be used instead of <code>source</code> to stop all sounds with a certain name, across all sources.}}
}}
}}


=== ''Bedrock Edition'' ===
=== ''Bedrock Edition'' ===
{{HistoryTable
{{HistoryTable
|{{MC/HistoryLine|pocket}}
|{{HistoryLine|pocket}}
|{{HistoryLine||1.0.5|dev=alpha 1.0.5.0|Added {{MC/Cmd|stopsound|link=none}}.}}
|{{HistoryLine||1.0.5|dev=alpha 1.0.5.0|Added {{cmd|stopsound|link=none}}.}}
}}
}}


== See also ==
== See also ==
* {{MC/Cmd|playsound}} – plays a sound
* {{Cmd|playsound}} – plays a sound


== External links ==
== External links ==
Line 69: Line 69:


== Navigation ==
== Navigation ==
{{MC/Navbox commands}}
{{Navbox commands}}


de:Befehl/stopsound
[[Minecraft:de:Befehl/stopsound]]
es:Comandos/stopsound
[[Minecraft:es:Comandos/stopsound]]
ja:コマンド/stopsound
[[Minecraft:ja:コマンド/stopsound]]
pt:Comandos/stopsound
[[Minecraft:pt:Comandos/stopsound]]
ru:Команды консоли/stopsound
[[Minecraft:ru:Команды консоли/stopsound]]
uk:Команди консолі/stopsound
[[Minecraft:uk:Команди консолі/stopsound]]
zh:命令/stopsound
[[Minecraft:zh:命令/stopsound]]

Latest revision as of 11:06, 16 April 2026

Template:Infobox command

Stops a given Minecraft:sound.

Syntax

  • Java Edition
stopsound <targets> [<source>] [<sound>]
  • Bedrock Edition
stopsound <player: target> [sound: string]

Arguments

Template:Argument

Specifies the command's target.
Template:Arg desc

Template:El: Template:Code

Specifies which category in the Music & Sound options the sound falls under. If it is *, stop sound of all category.
Must be master, music, record, weather, block, hostile, neutral, player, ambient, voice, or *.

Template:Argument

Specifies the sound to stop. If no sound is specified, stops all sounds.
Template:IN, Template:Arg desc Should be a sound event defined in sound_definitions.json (for example, mob.pig.say).
Template:IN, Template:Arg desc Should be a sound event defined in sounds.json (for example, entity.pig.ambient).

Result

Template:Result table Template:Result table Template:Result table Template:Result table Template:Result table Template:Result table

Output

Template:Output table Template:Output table Template:Output table Template:Output table Template:Output table Template:Output table

History

Java Edition

Template:HistoryTable

Bedrock Edition

Template:HistoryTable

See also

External links

Navigation

Template:Navbox commands

Minecraft:de:Befehl/stopsound Minecraft:es:Comandos/stopsound Minecraft:ja:コマンド/stopsound Minecraft:pt:Comandos/stopsound Minecraft:ru:Команды консоли/stopsound Minecraft:uk:Команди консолі/stopsound Minecraft:zh:命令/stopsound