Minecraft:Commands/raid: Difference between revisions
More actions
Remove broken links to missing pages |
Fix template calls: add MC/ prefix |
||
| Line 1: | Line 1: | ||
{{ | {{MC/Exclusive|java}} | ||
{{ | {{MC/Debug warning}} | ||
{{Infobox command | {{Infobox command | ||
|name=raid | |name=raid | ||
| Line 17: | Line 17: | ||
: 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 text component evaluates to the string {{ | : 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 pillager as a raid captain at the execution position. | : Spawns a pillager as a raid captain at the execution position. | ||
| Line 26: | Line 26: | ||
== Arguments == | == Arguments == | ||
{{ | {{MC/Argument|omenlvl|integer}} | ||
: Specifies the Bad Omen level to start a raid with. | : Specifies the Bad Omen level to start a raid with. | ||
: {{ | : {{MC/Arg desc|je=integer|min=0}} | ||
{{ | {{MC/Argument|type|component}} | ||
: Specifies the text component whose string value should be {{ | : Specifies the text component whose string value should be {{MC/Cd|local}} for a raid horn sound to be played. | ||
: {{ | : {{MC/Arg desc|je=component}} | ||
{{ | {{MC/Argument|level|integer}} | ||
: Specifies the Bad Omen level to set a raid's level to. | : Specifies the Bad Omen level to set a raid's level to. | ||
: {{ | : {{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 <omenlvl>|On success|1|1|-1 if a raid already exists nearby, 1 otherwise}} | {{MC/Output table|edition=je|cmd=/raid start <omenlvl>|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 <type>|On success|1|1|1}} | {{MC/Output table|cmd=/raid sound <type>|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 <level>|On success|1|1|1}} | {{MC/Output table|cmd=/raid setomen <level>|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 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}} | ||
de:Befehl/raid | de:Befehl/raid | ||
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
- 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
- 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
de:Befehl/raid zh:命令/raid