/raid
< Commands
This feature is exclusive to Java Edition.
This feature is intended for debugging purposes only, and should not be used during normal play. It might cause crashes and corrupt world saves.
/raid| Permission level required |
3 |
|---|---|
| Restrictions |
|
{
"title": "<code>/raid</code>",
"rows": [
{
"field": "3",
"label": "(link to Permission level article, displayed as Permission level<br>required)"
},
{
"field": "<code>-DMC_DEBUG_DEV_COMMANDS</code> (link to debug property article, displayed as debug property)",
"label": "(link to Commands#Restrictions article, displayed as Restrictions)"
}
],
"invimages": [],
"images": []
}
/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
local(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.
- Must be a [Int]32-bit integer number (from -2147483648 (-231) to 2147483647 (231-1) ). And it must be between 0 and 2147483647 (inclusive).
<type>: component
- Specifies the text component whose string value should be
localfor a raid horn sound to be played. - It must be a valid text component.
<level>: integer
- Specifies the Bad Omen level to set a raid's level to.
- Must be a [Int]32-bit integer number (from -2147483648 (-231) to 2147483647 (231-1) ). And it must be between 0 and 2147483647 (inclusive).
Result
| Command | Trigger | Java Edition |
|---|---|---|
| Any | The command is incomplete, or any argument is not specified correctly. | Unparseable |
| Otherwise | Successful |
Output
| Command | Edition | Situation | Success Count | /execute store success ... | /execute store result ... |
|---|---|---|---|---|---|
/raid start <omenlvl> | Java Edition | On success | 1 | 1 | -1 if a raid already exists nearby, 1 otherwise |
/raid stop | On success | 1 | 1 | -1 if there is no raid nearby, 1 otherwise | |
/raid check | On success | 1 | 1 | 0 if there is no raid nearby, 1 otherwise | |
/raid sound <type> | On success | 1 | 1 | 1 | |
/raid spawnleader | On success | 1 | 1 | 0 if the pillager fails to spawn, 1 otherwise | |
/raid setomen <level> | On success | 1 | 1 | 1 | |
/raid glow | On success | 1 | 1 | 1 |
History
| Java Edition | |||||||
|---|---|---|---|---|---|---|---|
| 1.21.9 | Pre-Release 1 | Added debug property -DMC_DEBUG_DEV_COMMANDS, making the command accessible in the vanilla game. | |||||