Raid

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

Spawning
Raids spawn near villages any area with at least one valid bed and a villager when a player with the Bad Omen status effect enters. This status effect is obtained when a player kills an illager captain which can be found at pillager outposts or in illager patrols (the mob wearing the illager banner).

$$, if a player kills more captains and stacks the effects of Bad Omen, more types of illagers will spawn in the area; ravagers spawn starting at wave 2 (with pillagers riding on top of them), witches starting at wave 3, and evokers starting at wave 5. Patrol captains give 1–5 Bad Omen levels when killed $$ Outpost captains always give 1 level only. These effects also stack to spawn more difficult raids.

$$, the Bad Omen effect does not accumulate by killing more captains, number of waves is 3 on easy, 5 on normal, and 7 on hard without any additional extra waves. Vindicators spawn starting at wave 2, ravagers starting at wave 3, witches starting at wave 4, and evokers starting at wave 5.

Starting
Upon entering a village, the effect will immediately go away and a red (pink) 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, also a ringing bell sound can be heard. 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.

Joining
In Java Edition Illagers not spawned by a raid, except naturally spawned witches, may join a wave in a raid and be counted by the bossbar (e.g an illager patrol spawns near the raid). Illusioners, despite being unused mobs, can also join the raid and behave as such.

In Bedrock Edition Illagers cannot join raids. If a new raid is triggered after all beds are destroyed and then replaced, previously remaining illagers are not counted in the raid bossbar.

Illager captains are unused in Bedrock Edition.

Captains
When a wave captain 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 captain. If a player kills the patrol captain while in a village, they will not get the status effect. The captain is always a vindicator upon spawning.

Raid group
When a raid begins, the event will spawn mobs 0-52 blocks away from the village in which the raid takes place. Raids can spawn in any biome and in any dimension. The mobs spawned will arrive in groups, wave after wave. The following mob groups can appear in each wave.

Java Edition
Ravagers spawn starting at wave 2, although each wave has a 50% chance of a Ravager spawning. Starting at wave 3, a witch will always spawn at the back of the group and some of the pillagers can spawn with enchanted crossbows. At wave 5, vindicators can spawn riding on top of ravagers, and they outnumber pillagers in the subsequent waves. Any pillagers that spawn will always have enchanted crossbows. At wave 5, an evoker will always spawn and often race ahead of the group.

Bad Omen
Besides triggering a raid, Bad Omen status effect's level of the triggering player also affects the raid mechanism. When the Bad Omen level of the raid is higher than one, an additional wave with the same strength as the final wave will spawn. With a higher the level of Bad Omen of a raid, the illagers in the raid will have a higher chance equipped with enchanted weapons or armors. When the raid ends in a victory, the Hero of the Village effect obtained by players will have the same level as the Bad Omen level of the raid.

Ending
If the village being attacked by a raid no longer registers as a village (i.e. all villagers were killed or all beds were destroyed), the raid will end, and the Raid bar will display “Raid - Defeat” and all of the illagers will celebrate, the evokers and vindicators will raise their hands, the pillagers will jump and all of them will emit "happiness sounds" including ravagers. If all illagers are killed in the final wave, any player who has killed an illager in the raid will receive the Hero of the Village effect, the villagers will shoot off fireworks, and the Raid bar will display "Raid - Victory”. In the event that all villagers or beds are destroyed in the raids, the player receives the Bad Omen effect again. Raids won't end naturally if there is at least 1 baby villager, due to illagers being unable to attack baby villagers and destroy beds.

Loot
In Bedrock Edition, pillagers and vindicators that spawn from raids additionally can drop: And has ?% chance to drop one of these items:
 * 0-1 (up to 4 with looting III)
 * 2-3 (up to 6 with looting III)
 * 4-5 (up to 8 with looting III)
 * (enchantment level 30)
 * (will be badly damaged, can be enchanted with random enchantment)
 * (will be badly damaged, can be enchanted with random enchantment)
 * (will be badly damaged, can be enchanted with random enchantment)
 * (will be badly damaged, can be enchanted with random enchantment)
 * (will be badly damaged, can be enchanted with random enchantment)
 * (will be badly damaged, can be enchanted with random enchantment)
 * (will be badly damaged, can be enchanted with random enchantment)
 * (will be badly damaged, can be enchanted with random enchantment)

Villagers
During a raid, villagers will emit sweat particles. Villagers will also run inside their houses as if it were to be nighttime or a storm.

Witches
Witches when in a raid will often help other illagers if they are low on health by splashing a regeneration potion or healing. The witches will also attack villagers and throw harmful potions at them. In Bedrock Edition, witches spawn during raids only attacking the player and iron golems and will not heal other illagers.