Pillager

A pillager is an illager equipped with a crossbow.

Patrols
5 pillagers spawn in patrols. Patrols spawn naturally after 5$1/2$ in-game days. They spawn only at night independently of structures, i.e. they still spawn in a world without generated structures.

$$, patrols spawn 2 to 5 mobs; on easy and normal difficulties, all are pillagers, on hard difficulty 80% are pillagers and 20% are vindicators, spawning 24 to 48 blocks away from the player. On easy difficulty, they spawn at light levels from 0 to 7, while in normal and hard difficulties they spawn in any light level after 5$1/2$ in-game days.

Outposts
Pillagers naturally spawn and respawn in outposts. They spawn in a 72&times;54&times;72 block area centered on the top floor (with the chest). Only pillagers and passive mobs may spawn in that area.

Pillagers may spawn on any valid opaque block as long as the sky light level is above 8, and the block light level is below 8, but can also spawn on grass or sand blocks regardless of block light level.

$$, pillagers spawn at or below a particular location in the outpost, choosing the highest opaque block with a non-solid block on top and spawning on the northwest corner.

Raids
Pillagers spawn as part of raids, as the most common mobs in one.

Behavior
A pillager is armed with a crossbow and shoots arrows at players, iron golems, snow golems, wandering traders, and villagers. A pillager shoots an arrow every 3 seconds up to 8 blocks away, pursuing an enemy within 64 blocks. Pillagers never attack one another; even if one is shot by another pillager, it does not start dueling.

If raiding pillagers kill all the villagers in a village, the pillagers celebrate their victory cheering.

$$, a pillager's crossbow eventually breaks with repeated use, unlike weapons wielded by other mobs. A pillager continues to shoot arrows until the crossbows break. An unarmed pillager $$ is passive to everyone, but still frightens villagers.

$$, pillagers use melee attacks when underwater.

Passive pillagers
Pillagers can be made passive in survival using a few methods:


 * Stacking snow layers six-high between a trapped pillager and player/villager so the pillager's line of sight meets the player/villager but the arrows get stuck in the snow.
 * Using a shield so the pillager's arrows are deflected
 * Sitting in a boat with a pillager and facing any cardinal direction
 * Trapping a Pillager in iron bars and standing on a block that’s on the same level as the head, then sitting there so he shoots at you, but the arrows don’t hit you.

Drops

 * A loaded or unloaded, which has an 8.5% chance to be dropped; this rate increases by 1% per level of Looting.
 * It has a random durability.
 * A pillager has a 0 to 10% chance of having a crossbow enchanted at level 5 to 19, both depending on regional difficulty.
 * and an additional per naturally-spawned equipment when killed by a player or tamed wolf.
 * 1 Illager Banner.png Ominous banner, if the pillager is a raid captain. The raid captain spawns with an ominous banner above its head and always drops the banner when defeated.
 * 0–2 s, dropping more with the presence of Looting, up to 5.

Pillagers spawned by raids drop:
 * 0–1

The following additional items drop from pillagers spawned by raids depending on difficulty (there is a 65% chance on easy and normal or an 80% chance on hard):
 * 0–1 ($10/39$ or 25.6%)
 * 2–3 ($20/78$ or 12.8%)
 * 4–5 ($5/39$ or 5.1%)
 * 1 ($10/78$ or 5.1%)
 * 1 ($2/39$ or 6.4%)
 * 1 ($4/78$ or 6.4%)
 * 1 ($2/39$ or 6.4%)
 * 1 ($4/78$ or 6.4%)
 * 1 ($5/78$ or 6.4%)
 * 1 ($5/78$ or 6.4%)
 * 1 ($5/78$ or 6.4%)
 * 1 ($5/78$ or 6.4%)

Notes:
 * Iron equipment drops from raids always has a 50% chance of being enchanted with a random enchantment level from 5 to 19. A pillager may also have enchantments on books and armor that cannot be normally obtained, such as blast protection and fire protection on the same pair of boots.
 * Iron equipment is always damaged, having from 30 to 90% of the full durability.
 * These drops are affected by the Looting enchantment.
 * Emeralds are both a regular raid drop and an additional drop.
 * Enchanted books have a level 30 enchantment and also can be a treasure enchantment.

Bad Omen
If the player kills a pillager wearing a banner on its head, the player receives the Bad Omen status effect. These pillagers are patrol or outpost captains.

Patrols spawn a single captain, while outposts can spawn 1-3 captains at a time. These captains give the Bad Omen effect at level I, whereas illager captains in raids do not give Bad Omen. The effect lasts for 100 minutes (5 days in-game) and stacks to a maximum of level 6 (without using commands), but can be removed by drinking milk.

The higher the Bad Omen effect, the higher chance of the crossbows of the pillagers being enchanted.

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

Trivia

 * $5/78$, an unarmed pillager walks at random similarly to passive mobs, but always faces any player in its field of view. The pillager also always holds its arm up, similar to an attacking vindicator.
 * The command:  summons a passive pillager that does not attack anything.