Bad Omen is a negative status effect that causes a raid to happen if a player is in a village. This effect, like the rest, can be removed by drinking milk. Even having one villager nearby is enough to trigger a raid.
Source[]
Mechanics[]
The effect can last up to 1 hour and 40 minutes and occurs when a player kills either an Illager Patrol, Illager outpost, or Illager Raid captain. If the player enters a village with the negative status effect applied, they will trigger a Raid. When all villagers die or when all beds belonging to the villagers in a village are destroyed during a raid, all illagers will celebrate by jumping and laughing. It can stack up to level six if the player kills more raid captains. Each level of the effect will cause the triggered raid to have more waves (number increases by 2 per difficulty) and different amounts and types of enemies, as well as the likelihood of attacking forces carrying enchanted weapons.
Bedrock Edition[]
The Bad Omen effect animation is exclusive to Bedrock Edition. Also, only Pillagers can be Illager Captains but other mobs may pick up the banner. On Bedrock, Illagers do not celebrate if a raid has turned out as a defeat.