Pillager

Pillagers are illager mobs equipped with crossbows.

Illager patrols
In Java Edition pillagers may 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.

In Bedrock Edition pillagers may spawn in illager patrols. Illager patrols spawn 2-5 illagers, On easy and normal difficulties all illager are pillagers, while on hard difficulty 80% will be pillager and 20% will be vindicator, spawn 24-48 blocks away from 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.

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 (9.5% with Looting I, 10.5% with Looting II and 11.5% with Looting III). It will have a random durability, and can be enchanted.
 * 5 experience when killed by a player or tamed wolf.
 * 1 Illager Banner.png illager banner, if the pillager is an illager captain. The Illager captain will spawn with an Illager banner on its head and will always drop the banner when defeated.

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.

Bad omen
If the player defeats a pillager wearing a banner on their head, the player will be inflicted with the bad omen status effect. These pillagers are designated as patrol or outpost captains, depending on if they spawned in a patrol or at an outpost. Patrol captains will give the bad omen effect ranging from level 1 to 3, whereas outpost captains only give level 1 bad omen. The effect last for 100 minutes and will stack to a maximum of level 6 (without using commands). The higher the bad omen effect is, the more waves you will receive in a raid, up to a maximum of 10 waves for level 5+ bad omen.

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