Pillager

Pillagers are hostile illager mobs equipped with crossbows.

Illager patrols
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. Pillager patrols spawn naturally throughout the day or night but after 5 days in-game days (1 hour & 20 minutes).

Pillager outposts
Pillagers naturally spawn in and around pillager outposts.

Raids
Pillagers are able to spawn as part of raids. Raids are when Illagers invade a village and attack villagers.

Woodland mansions
Pillagers can naturally spawn inside woodland mansions.

Drops
Upon death, pillagers drop:
 * 0–2 s, dropping more with the presence of Looting, up to 5%.
 * Its 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 a patrol captain. The Pillager patrol leader 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 and villagers. 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 illager beasts. 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
You will receive the Bad Omen effect when defeating the Pillagers wearing banners on their heads. It looks like their face surrounded by a black border similar to the banners you will find at the top level of a Pillager outpost. These 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 ranging from level 1 to 3, whereas outpost captains only give level 1 bad omen. The effect is indefinite and will stack to a maximum of level 5. The amount of levels in the Bad Omen determines how many waves you will receive in a raid.