Raid

A raid is a group of illagers that spawn in villages when a player with the status effect enters.

Spawning
Raids spawn near villages when a player with the Bad Omen status effect enters. This status effect is obtained when a player kills an illager patrol captain/leader (the mob wearing the illager banner). If a player uses commands to give themself a Bad Omen effect with a higher level (for example, ), more illager types will spawn in the area.

Patrol leaders give 1–3 bad omen levels when killed. Pillager outpost patrol leaders always give 1 level only.

Illager beasts start spawning at wave 2, witches at wave 4, and evokers at wave 10.

Behavior
Upon entering a village, the effect will immediately go away and a red bossbar with the name "Raid" will appear. The bar will begin to charge up, and once it stops, will go down for every mob killed. When there are less than three mobs left, it will show how many there are. Before every wave begins, a horn-like sound will play to indicate that it has started. For every level of Bad Omen, two waves of illagers will spawn, up to a maximum of 10 waves for level 5 Bad Omen and above. Each wave gets subsequently larger with more illagers (and witches) spawning, as well as more varied in the types of illagers that spawn. The wave also determines what will spawn, depending on what wave is currently active. For wave 2 or higher beasts will begin to spawn, for wave 4 or higher witches will begin to spawn, and on wave 10 evokers spawn.

Illagers not spawned by a raid may join a wave in a raid and be counted by the bossbar.

When a wave leader is killed, other illagers in the raid will try to pick up the banner dropped by the previous leader; the illager that picked up the banner will be the new wave leader.

If the village being attacked by a raid no longer registers as a village (i.e. all villagers were killed or all doors were broken), the raid will end.

If a player kills the patrol leader while in a village, they will not get the status effect and a raid will start briefly.

During a raid, villagers will not trade until the raid is over. If the player attempts to trade with them, they emit sweat particles. Villagers will also run inside their houses as if it were to be nighttime or a storm.

Illusioners, despite being illagers, do not spawn during the event.

NBT Structure
This is the NBT format for raids.dat file in the data folder in the root directory of the savegame.
 * : The root tag.
 * : The ID for the next raid that will happen.
 * : List of compound tags including raid information.
 * : A raid.
 * : 1 or 0 (true/false).
 * : Optional. The x position of the center of the raid.
 * : Optional. The y position of the center of the raid.
 * : Optional. The z position of the center of the raid.
 * : The ID of the raid.
 * : 1 or 0 (true/false).
 * : 1 or 0 (true/false).
 * : 1 or 0 (true/false).
 * : Internal clock.
 * : 1 or 0 (true/false).
 * : Internal clock.
 * : 1 or 0 (true/false).
 * : Internal clock.
 * : Internal clock.
 * : Internal clock.

Gallery
Überfall Raid 레이드 Набег จู่โจม 袭击