Minecraft:Commands/stopsound: Difference between revisions
From SAS Gaming Wiki
More actions
Fix template calls: add MC/ prefix |
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 == | ||
{{ | {{argument|targets|entity|player: target|CommandSelector<Player>}} | ||
: Specifies the command's target. | : Specifies the command's target. | ||
: {{ | : {{arg desc|je=entity|amount=multiple|type=players|be=player}} | ||
{{ | {{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>. | ||
{{ | {{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. | ||
: {{ | : {{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>). | ||
: {{ | : {{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 == | ||
{{ | {{Output table}} | ||
{{ | {{Output table|edition=je|On fail|0|0|0}} | ||
{{ | {{Output table|On success|1|1|the number of targeted players}} | ||
{{ | {{Output table|edition=be|On fail|0}} | ||
{{ | {{Output table|On success|the number of targeted players}} | ||
{{ | {{Output table}} | ||
== History == | == History == | ||
=== ''Java Edition'' === | === ''Java Edition'' === | ||
{{HistoryTable | {{HistoryTable | ||
|{{ | |{{HistoryLine|java}} | ||
|{{HistoryLine||1.9.3|dev=pre2|Added {{ | |{{HistoryLine||1.9.3|dev=pre2|Added {{cmd|stopsound|link=none}}.}} | ||
|{{ | |{{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 | ||
|{{ | |{{HistoryLine|pocket}} | ||
|{{HistoryLine||1.0.5|dev=alpha 1.0.5.0|Added {{ | |{{HistoryLine||1.0.5|dev=alpha 1.0.5.0|Added {{cmd|stopsound|link=none}}.}} | ||
}} | }} | ||
== See also == | == See also == | ||
* {{ | * {{Cmd|playsound}} – plays a sound | ||
== External links == | == External links == | ||
| Line 69: | Line 69: | ||
== Navigation == | == Navigation == | ||
{{ | {{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
Stops a given Minecraft:sound.
Syntax
- Java Edition
stopsound <targets> [<source>] [<sound>]
- Bedrock Edition
stopsound <player: target> [sound: string]
Arguments
- Specifies the command's target.
- Template:Arg desc
- 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*.
- 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
Bedrock Edition
See also
- Template:Cmd – plays a sound
External links
Minecraft:de:Befehl/stopsound Minecraft:es:Comandos/stopsound Minecraft:ja:コマンド/stopsound Minecraft:pt:Comandos/stopsound Minecraft:ru:Команды консоли/stopsound Minecraft:uk:Команди консолі/stopsound Minecraft:zh:命令/stopsound