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)
Remove broken links to missing pages
SyncBot (talk | contribs)
Fix template calls: add MC/ prefix
 
Line 16: Line 16:


== Arguments ==
== Arguments ==
{{argument|targets|entity|player: target|CommandSelector<Player>}}
{{MC/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}}
: {{MC/Arg desc|je=entity|amount=multiple|type=players|be=player}}


{{el|je|short=1}}: {{code|<''source''>}}
{{MC/El|je|short=1}}: {{MC/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}}
{{MC/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>).
: {{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|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>).
: {{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>).


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


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


== History ==
== History ==
=== ''Java Edition'' ===
=== ''Java Edition'' ===
{{HistoryTable
{{HistoryTable
|{{HistoryLine|java}}
|{{MC/HistoryLine|java}}
|{{HistoryLine||1.9.3|dev=pre2|Added {{cmd|stopsound|link=none}}.}}
|{{HistoryLine||1.9.3|dev=pre2|Added {{MC/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.}}
|{{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.}}
}}
}}


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


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


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


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


de:Befehl/stopsound
de:Befehl/stopsound

Latest revision as of 20:14, 9 April 2026

Template:Infobox command

Stops a given sound.

Syntax

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

Arguments

Template:El<targets>: entity
Template:El: player: target: CommandSelector<Player>

Specifies the command's target.
{{#vardefine:onlyje|Template:IN,}}{{#vardefine:onlybe| Template:IN,}}{{#vardefine:je-arg|entity}}{{#vardefine:be-arg|entity}}Template:Error{{#vardefine:onlyje|}}{{#vardefine:onlybe|}}{{#vardefine:je-arg|}}{{#vardefine:be-arg|}}
  1. REDIRECT Template:Edition

Template:Rcat: <source>

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:El<sound>: resource_location
Template:El: sound: string: basic_string

Specifies the sound to stop. If no sound is specified, stops all sounds.
in Template:Editions, {{#vardefine:onlyje|Template:IN,}}{{#vardefine:onlybe|}}{{#vardefine:je-arg|}}{{#vardefine:be-arg|string}}Template:Error{{#vardefine:onlyje|}}{{#vardefine:onlybe|}}{{#vardefine:je-arg|}}{{#vardefine:be-arg|}} Should be a sound event defined in sound_definitions.json (for example, mob.pig.say).
in Template:Editions, {{#vardefine:onlyje|}}{{#vardefine:onlybe| Template:IN,}}{{#vardefine:je-arg|resource_location}}{{#vardefine:be-arg|}}Template:Error{{#vardefine:onlyje|}}{{#vardefine:onlybe|}}{{#vardefine:je-arg|}}{{#vardefine:be-arg|}} 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

{{#vardefine:output-table-lines|Expression error: Unrecognized punctuation character "{".}}{{#vardefine:output-table-lines|-2}}{{#vardefine:output-table-lines-now|}}{{#vardefine:command-num-now|}}{{#vardefine:command-line-now|}}{{#vardefine:commands-num|}}{{#vardefine:output-edition-num-now|}}{{#vardefine:output-edition-line-now|}}{{#vardefine:output-editions-num|}}{{#vardefine:je-outputs-dis|}}

{{#vardefine:output-table-lines|Expression error: Unrecognized punctuation character "{".}}{{#vardefine:situation-{{#var:output-table-lines}}|On fail}}{{#vardefine:output1-{{#var:output-table-lines}}|0}}{{#vardefine:output2-{{#var:output-table-lines}}|0}}{{#vardefine:output3-{{#var:output-table-lines}}|0}}{{#vardefine:command-row-{{#var:commands-num}}|Expression error: Unrecognized punctuation character "{".}}{{#vardefine:output-editions-num|Expression error: Unrecognized punctuation character "{".}}{{#vardefine:output-edition-{{#var:output-editions-num}}|je}}{{#vardefine:output-edition-row-{{#var:output-editions-num}}|1}} {{#vardefine:output-table-lines|Expression error: Unrecognized punctuation character "{".}}{{#vardefine:situation-{{#var:output-table-lines}}|On success}}{{#vardefine:output1-{{#var:output-table-lines}}|1}}{{#vardefine:output2-{{#var:output-table-lines}}|1}}{{#vardefine:output3-{{#var:output-table-lines}}|the number of targeted players}}{{#vardefine:command-row-{{#var:commands-num}}|Expression error: Unrecognized punctuation character "{".}}{{#vardefine:output-edition-row-{{#var:output-editions-num}}|Expression error: Unrecognized punctuation character "{".}} {{#vardefine:output-table-lines|Expression error: Unrecognized punctuation character "{".}}{{#vardefine:situation-{{#var:output-table-lines}}|On fail}}{{#vardefine:output1-{{#var:output-table-lines}}|0}}{{#vardefine:output2-{{#var:output-table-lines}}|N/A}}{{#vardefine:output3-{{#var:output-table-lines}}|N/A}}{{#vardefine:command-row-{{#var:commands-num}}|Expression error: Unrecognized punctuation character "{".}}{{#vardefine:output-editions-num|Expression error: Unrecognized punctuation character "{".}}{{#vardefine:output-edition-{{#var:output-editions-num}}|be}}{{#vardefine:output-edition-row-{{#var:output-editions-num}}|1}} {{#vardefine:output-table-lines|Expression error: Unrecognized punctuation character "{".}}{{#vardefine:situation-{{#var:output-table-lines}}|On success}}{{#vardefine:output1-{{#var:output-table-lines}}|the number of targeted players}}{{#vardefine:output2-{{#var:output-table-lines}}|N/A}}{{#vardefine:output3-{{#var:output-table-lines}}|N/A}}{{#vardefine:command-row-{{#var:commands-num}}|Expression error: Unrecognized punctuation character "{".}}{{#vardefine:output-edition-row-{{#var:output-editions-num}}|Expression error: Unrecognized punctuation character "{".}}

{{#vardefine:output-table-lines|Expression error: Unrecognized punctuation character "{".}}{{#vardefine:output-table-lines|-2}}{{#vardefine:output-table-lines-now|}}{{#vardefine:command-num-now|}}{{#vardefine:command-line-now|}}{{#vardefine:commands-num|}}{{#vardefine:output-edition-num-now|}}{{#vardefine:output-edition-line-now|}}{{#vardefine:output-editions-num|}}{{#vardefine:je-outputs-dis|}}

History

Java Edition

Template:HistoryTable

Bedrock Edition

Template:HistoryTable

See also

  1. REDIRECT Template:Command

Template:Redr – plays a sound

External links

Navigation

All editions
Removed
Template:El only
Debug
Removed
Template:Els only
Template:El only
Removed
Template:El only
Removed
Template:Els only
Removed
Joke
Related

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