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/raid: Difference between revisions

From SAS Gaming Wiki
imported>Parrot Pizza
mNo edit summary
 
SyncBot (talk | contribs)
Fix template calls: add MC/ prefix
 
(One intermediate revision by the same user not shown)
Line 1: Line 1:
{{exclusive|java}}
{{MC/Exclusive|java}}
{{debug warning}}
{{MC/Debug warning}}
{{Infobox command
{{Infobox command
|name=raid
|name=raid
|oplevel=3
|oplevel=3
|others=<code>-DMC_DEBUG_DEV_COMMANDS</code> [[Minecraft:debug property]]
|others=<code>-DMC_DEBUG_DEV_COMMANDS</code> debug property
}}
}}


'''/raid''' is a command that can be enabled with the [[Minecraft:debug property]] <code>-DMC_DEBUG_DEV_COMMANDS</code>. It controls [[Minecraft:raid]]s.
'''/raid''' is a command that can be enabled with the debug property <code>-DMC_DEBUG_DEV_COMMANDS</code>. It controls raids.


== Syntax ==
== Syntax ==
<code>raid start <omenlvl></code>
<code>raid start <omenlvl></code>
: Starts a raid of the specified level if there is a [[Minecraft:village]] near the execution position and there is no ongoing [[Minecraft:raid]].
: Starts a raid of the specified level if there is a village near the execution position and there is no ongoing raid.
<code>raid stop</code>
<code>raid stop</code>
: Stops a raid if there is one at a village near the [[Minecraft:Execution context|execution position]].
: Stops a raid if there is one at a village near the execution position.
<code>raid check</code>
<code>raid check</code>
: Checks if there is a raid at a village near the execution position, and prints information about it if there is. The information includes the number of waves spawned as of yet, the level of the raid, the number of raiders left in the current wave, and the total health of all raiders left in the current wave.
: Checks if there is a raid at a village near the execution position, and prints information about it if there is. The information includes the number of waves spawned as of yet, the level of the raid, the number of raiders left in the current wave, and the total health of all raiders left in the current wave.
<code>raid sound <type></code>
<code>raid sound <type></code>
: If the specified [[Minecraft:text component]] evaluates to the string {{cd|local}} (without resolution), plays a raid horn sound 5 blocks on the X axis away from the execution position. Otherwise, does nothing.
: If the specified text component evaluates to the string {{MC/Cd|local}} (without resolution), plays a raid horn sound 5 blocks on the X axis away from the execution position. Otherwise, does nothing.
<code>raid spawnleader</code>
<code>raid spawnleader</code>
: Spawns a [[Minecraft:pillager]] as a [[Minecraft:raid captain]] at the execution position.
: Spawns a pillager as a raid captain at the execution position.
<code>raid setomen <level></code>
<code>raid setomen <level></code>
: Sets the level of an ongoing raid at a village near the execution position to the specified level.
: Sets the level of an ongoing raid at a village near the execution position to the specified level.
<code>raid glow</code>
<code>raid glow</code>
: Applies the [[Minecraft:Glowing]] effect to all current raiders for 50 seconds.
: Applies the Glowing effect to all current raiders for 50 seconds.


== Arguments ==
== Arguments ==
{{argument|omenlvl|integer}}
{{MC/Argument|omenlvl|integer}}
: Specifies the [[Minecraft:Bad Omen]] level to start a raid with.
: Specifies the Bad Omen level to start a raid with.
: {{arg desc|je=integer|min=0}}
: {{MC/Arg desc|je=integer|min=0}}
{{argument|type|component}}
{{MC/Argument|type|component}}
: Specifies the text component whose string value should be {{cd|local}} for a raid horn sound to be played.
: Specifies the text component whose string value should be {{MC/Cd|local}} for a raid horn sound to be played.
: {{arg desc|je=component}}
: {{MC/Arg desc|je=component}}
{{argument|level|integer}}
{{MC/Argument|level|integer}}
: Specifies the [[Minecraft:Bad Omen]] level to set a raid's level to.
: Specifies the Bad Omen level to set a raid's level to.
: {{arg desc|je=integer|min=0}}
: {{MC/Arg desc|je=integer|min=0}}


== Result ==
== Result ==
Line 43: Line 43:


== Output ==
== Output ==
{{Output table}}
{{MC/Output table}}
{{Output table|edition=je|cmd=/raid start &lt;omenlvl&gt;|On success|1|1|-1 if a raid already exists nearby, 1 otherwise}}
{{MC/Output table|edition=je|cmd=/raid start &lt;omenlvl&gt;|On success|1|1|-1 if a raid already exists nearby, 1 otherwise}}
{{Output table|cmd=/raid stop|On success|1|1|-1 if there is no raid nearby, 1 otherwise}}
{{MC/Output table|cmd=/raid stop|On success|1|1|-1 if there is no raid nearby, 1 otherwise}}
{{Output table|cmd=/raid check|On success|1|1|0 if there is no raid nearby, 1 otherwise}}
{{MC/Output table|cmd=/raid check|On success|1|1|0 if there is no raid nearby, 1 otherwise}}
{{Output table|cmd=/raid sound &lt;type&gt;|On success|1|1|1}}
{{MC/Output table|cmd=/raid sound &lt;type&gt;|On success|1|1|1}}
{{Output table|cmd=/raid spawnleader|On success|1|1|0 if the pillager fails to spawn, 1 otherwise}}
{{MC/Output table|cmd=/raid spawnleader|On success|1|1|0 if the pillager fails to spawn, 1 otherwise}}
{{Output table|cmd=/raid setomen &lt;level&gt;|On success|1|1|1}}
{{MC/Output table|cmd=/raid setomen &lt;level&gt;|On success|1|1|1}}
{{Output table|cmd=/raid glow|On success|1|1|1}}
{{MC/Output table|cmd=/raid glow|On success|1|1|1}}
{{Output table}}
{{MC/Output table}}


== History ==
== History ==
{{HistoryTable
{{HistoryTable
|{{HistoryLine|java}}
|{{MC/HistoryLine|java}}
|{{HistoryLine||1.21.9|dev=Pre-Release 1|Added [[Minecraft:debug property]] <code>-DMC_DEBUG_DEV_COMMANDS</code>, making the command accessible in the vanilla game.}}
|{{MC/HistoryLine||1.21.9|dev=Pre-Release 1|Added debug property <code>-DMC_DEBUG_DEV_COMMANDS</code>, making the command accessible in the vanilla game.}}
}}
}}


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


[[Minecraft:de:Befehl/raid]]
de:Befehl/raid
[[Minecraft:zh:命令/raid]]
zh:命令/raid

Latest revision as of 20:12, 9 April 2026

Script error: No such module "Exclusive". Template:Warning Template:Infobox command

/raid is a command that can be enabled with the debug property -DMC_DEBUG_DEV_COMMANDS. It controls raids.

Syntax

raid start <omenlvl>

Starts a raid of the specified level if there is a village near the execution position and there is no ongoing raid.

raid stop

Stops a raid if there is one at a village near the execution position.

raid check

Checks if there is a raid at a village near the execution position, and prints information about it if there is. The information includes the number of waves spawned as of yet, the level of the raid, the number of raiders left in the current wave, and the total health of all raiders left in the current wave.

raid sound <type>

If the specified text component evaluates to the string
  1. REDIRECT Template:Code

Template:Redr (without resolution), plays a raid horn sound 5 blocks on the X axis away from the execution position. Otherwise, does nothing. raid spawnleader

Spawns a pillager as a raid captain at the execution position.

raid setomen <level>

Sets the level of an ongoing raid at a village near the execution position to the specified level.

raid glow

Applies the Glowing effect to all current raiders for 50 seconds.

Arguments

<omenlvl>: integer

Specifies the Bad Omen level to start a raid with.
{{#vardefine:onlyje|}}{{#vardefine:onlybe| Template:IN,}}{{#vardefine:je-arg|integer}}{{#vardefine:be-arg|}}Template:Error{{#vardefine:onlyje|}}{{#vardefine:onlybe|}}{{#vardefine:je-arg|}}{{#vardefine:be-arg|}}

<type>: component

Specifies the text component whose string value should be
  1. REDIRECT Template:Code

Template:Redr for a raid horn sound to be played.

{{#vardefine:onlyje|}}{{#vardefine:onlybe| Template:IN,}}{{#vardefine:je-arg|component}}{{#vardefine:be-arg|}}Template:Error{{#vardefine:onlyje|}}{{#vardefine:onlybe|}}{{#vardefine:je-arg|}}{{#vardefine:be-arg|}}

<level>: integer

Specifies the Bad Omen level to set a raid's level to.
{{#vardefine:onlyje|}}{{#vardefine:onlybe| Template:IN,}}{{#vardefine:je-arg|integer}}{{#vardefine:be-arg|}}Template:Error{{#vardefine:onlyje|}}{{#vardefine:onlybe|}}{{#vardefine:je-arg|}}{{#vardefine:be-arg|}}

Result

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 success}}{{#vardefine:output1-{{#var:output-table-lines}}|1}}{{#vardefine:output2-{{#var:output-table-lines}}|1}}{{#vardefine:output3-{{#var:output-table-lines}}|-1 if a raid already exists nearby, 1 otherwise}}{{#vardefine:commands-num|Expression error: Unrecognized punctuation character "{".}}{{#vardefine:command-{{#var:commands-num}}|/raid start <omenlvl>}}{{#vardefine:command-row-{{#var:commands-num}}|1}}{{#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}}|-1 if there is no raid nearby, 1 otherwise}}{{#vardefine:commands-num|Expression error: Unrecognized punctuation character "{".}}{{#vardefine:command-{{#var:commands-num}}|/raid stop}}{{#vardefine:command-row-{{#var:commands-num}}|1}}{{#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 success}}{{#vardefine:output1-{{#var:output-table-lines}}|1}}{{#vardefine:output2-{{#var:output-table-lines}}|1}}{{#vardefine:output3-{{#var:output-table-lines}}|0 if there is no raid nearby, 1 otherwise}}{{#vardefine:commands-num|Expression error: Unrecognized punctuation character "{".}}{{#vardefine:command-{{#var:commands-num}}|/raid check}}{{#vardefine:command-row-{{#var:commands-num}}|1}}{{#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 success}}{{#vardefine:output1-{{#var:output-table-lines}}|1}}{{#vardefine:output2-{{#var:output-table-lines}}|1}}{{#vardefine:output3-{{#var:output-table-lines}}|1}}{{#vardefine:commands-num|Expression error: Unrecognized punctuation character "{".}}{{#vardefine:command-{{#var:commands-num}}|/raid sound <type>}}{{#vardefine:command-row-{{#var:commands-num}}|1}}{{#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 success}}{{#vardefine:output1-{{#var:output-table-lines}}|1}}{{#vardefine:output2-{{#var:output-table-lines}}|1}}{{#vardefine:output3-{{#var:output-table-lines}}|0 if the pillager fails to spawn, 1 otherwise}}{{#vardefine:commands-num|Expression error: Unrecognized punctuation character "{".}}{{#vardefine:command-{{#var:commands-num}}|/raid spawnleader}}{{#vardefine:command-row-{{#var:commands-num}}|1}}{{#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 success}}{{#vardefine:output1-{{#var:output-table-lines}}|1}}{{#vardefine:output2-{{#var:output-table-lines}}|1}}{{#vardefine:output3-{{#var:output-table-lines}}|1}}{{#vardefine:commands-num|Expression error: Unrecognized punctuation character "{".}}{{#vardefine:command-{{#var:commands-num}}|/raid setomen <level>}}{{#vardefine:command-row-{{#var:commands-num}}|1}}{{#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 success}}{{#vardefine:output1-{{#var:output-table-lines}}|1}}{{#vardefine:output2-{{#var:output-table-lines}}|1}}{{#vardefine:output3-{{#var:output-table-lines}}|1}}{{#vardefine:commands-num|Expression error: Unrecognized punctuation character "{".}}{{#vardefine:command-{{#var:commands-num}}|/raid glow}}{{#vardefine:command-row-{{#var:commands-num}}|1}}{{#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

Template:HistoryTable

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/raid zh:命令/raid