Raid captain

An Illager captain is the occurrence of a illager spawning with a Illager banner on top of its head, usually a pillager or vindicator.

Spawning
Illager captains spawn in the same conditions and occurrences of any illager, with no special occasions having one spawn and one spawning being completely randomized.

Illager patrols
One illager captain always spawns as part of a illager patrol, either a pillager or vindicator.

Raids
As part of raids sometimes a illager captain will spawn as a part of a group of pillagers. The captain will still grant the player Bad Omen, which can in turn trigger another raid if the player is still in a village boundary.

Pillager outposts
Usually 1-3 Illager captains will also spawn in a pillager outpost, which are always pillagers.

Woodland mansions
Illager captains can also spawn in woodland mansions, which are either vindicators or evokers.

Behavior
Illager captains usually act the same as if they were a normal illager, but other illager| behind them will follow them and usually the captain will take the lead ahead of the other illagers. Once a illager captain is killed by a player, the player will be inflicted with the bad omen effect, which can cause a raid to occur. The captain will drop its illager banner as well, and other illagers nearby will try and pick up that banner and become the next captain.

Illager captains are designated differently, depending if they spawned at a outpost or in a illager patrol. Patrol captains will be able to grant atleast 1-3 levels of bad omen, while outpost captains will only be able to grant 1 level.