/raid

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

-DMC_DEBUG_DEV_COMMANDS debug property

/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 local for 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

CommandTriggerJava Edition
AnyThe command is incomplete, or any argument is not specified correctly. Unparseable
OtherwiseSuccessful

Output

CommandEditionSituationSuccess Count/execute store success .../execute store result ...
/raid start <omenlvl>Java EditionOn success11-1 if a raid already exists nearby, 1 otherwise
/raid stopOn success11-1 if there is no raid nearby, 1 otherwise
/raid checkOn success110 if there is no raid nearby, 1 otherwise
/raid sound <type>On success111
/raid spawnleaderOn success110 if the pillager fails to spawn, 1 otherwise
/raid setomen <level>On success111
/raid glowOn success111

History

Java Edition
1.21.9Pre-Release 1Added debug property -DMC_DEBUG_DEV_COMMANDS, making the command accessible in the vanilla game.

Navigation