Pillager

"Aaah, the village. Once a place of peace, a nexus of happiness, a safe haven for everyone to soothe their souls in a never-ending mantra of “HRMM!”. Who in their right mind would dare to ruin this sanctuary of perfect balance? Now, the easy answer would be the crossbow-wielding Pillagers – the all-new threat of the Village & Pillage update."

- Per Landin

Pillagers are illager mobs equipped with crossbows.

Spawning
Pillagers only spawn at a pillager outpost or during a raid

Illager patrols
$$, pillagers can spawn in illager patrols. Illager patrols spawn a maximum of five pillagers (weight 55) or vindicators (weight 27) up to 200 blocks away from a village on grass or sand with a block light level of 0–8 and a sky light level of 10–15. Illager patrols spawn naturally throughout the day or night but after 5 in-game days.

$$, pillagers can spawn in illager patrols. Illager patrols spawn 2–5 illagers; on easy and normal difficulties all illagers are pillagers, while on hard difficulty 80% will be pillagers and 20% will be vindicators. The illagers will spawn 24–48 blocks away from the player. On easy difficulty, they can only spawn at light level 0–7 while in normal and hard difficulties they can spawn in any light level after 5 in-game days.

Pillager outposts
Pillagers naturally spawn in and around pillager outposts.

Raids
Pillagers are able to spawn as part of raids, usually as the most common mob in one. Raids start when a player enters a village with Bad Omen which is obtainable from killing a pillager captain from a Pillager Outpost

Behavior
Pillagers are armed with crossbows and attack by shooting arrows at nearby players, iron golems, villagers, or adult villagers, and wandering traders. They shoot an arrow every 3 seconds at 6 blocks away. This can lead to pillagers battling neutral/hostile mobs due to an arrow hitting the wrong target, though pillagers will never attack each other. Pillagers can ride ravagers. Pillagers will attempt to specifically target villagers in a raid while they will run away from the pillagers and will change targets if an entity hits them within their firing range. Pillagers will switch to melee attack when fully submerged underwater. Pillagers don't attack when they don't have any weapons.

Celebrating
If raiding pillagers kill all the villagers in a village, the pillagers will celebrate their victory by jumping and laughing.

Reinforcements
Pillagers are able to spawn reinforcements similar to zombies.

Drops
Upon death, pillagers drop:
 * 0–2 s, dropping more with the presence of Looting, up to 5.
 * Its (can be loaded or unloaded), which has an 8.5% chance to be dropped; this rate increases by 12% per level of Looting (20.5% with Looting I, 32.5% with Looting II and 44.5% with Looting III). It will have a random durability, and can be enchanted at level 5 – 19 whether or not it was enchanted when it spawned.
 * 5 experience when killed by a player or tamed wolf.
 * 1 Illager Banner.png Ominous banner, if the pillager is a raid captain. The raid captain will spawn with an ominous banner on its head and will always drop the banner when defeated.

$$ pillagers spawned by raids can drop: And one of the following additional drops depending on difficulty: (65% chance on easy and normal, 80% chance on hard) Note:
 * 0-1
 * 0-1 ($10/39$ or 25.6% chance)
 * 2-3 ($20/78$ or 12.8% chance)
 * 4-5 ($5/39$ or 5.1% chance)
 * 1 ($10/78$ or 5.1% chance)
 * 1 ($2/39$ or 6.4%)
 * 1 ($4/78$ or 6.4% chance)
 * 1 ($2/39$ or 6.4% chance)
 * 1 ($4/78$ or 6.4% chance)
 * 1 ($5/78$ or 6.4% chance)
 * 1 ($5/78$ or 6.4% chance)
 * 1 ($5/78$ or 6.4% chance)
 * 1 ($5/78$ or 6.4% chance)
 * Iron equipment from raider drops has a 50% chance of being enchanted with random enchantment level 5-19.
 * Iron equipment from raider drops will be badly damaged.
 * These drops are also affected by the Looting enchantment.
 * Emerald is both a regular raider drop and an additional raider drop.

Bad Omen
If the player kills the pillager wearing a banner on their head, the player will receive the Bad Omen status effect. These pillagers are patrol/outpost captains. Patrols spawn a single captain along with other Illagers, while outposts can spawn up to 3 captains. Patrol/outpost captains will give the Bad Omen effect at level 1, whereas Illager captains in raids do not give Bad Omen. The effect lasts for 100 minutes (5 days in-game) and will stack to a maximum of level 6 (without using commands). The higher the Bad Omen effect is, the more additional waves will appear in a raid.

Data values
Pillagers have entity data associated with them that contains various properties of the mob.