Bad Omen

Bad Omen is a status effect that causes a raid to appear if a player enters a village.

Effect
$$, Bad Omen's potency determines the number of waves of the raid (and thus final wave difficulty) that the player triggers upon entering a certain radius around a bed that a villager has claimed. If the raid results in player victory, the Hero of the Village's potency equals the Bad Omen's potency (capped at level 6).

$$, regardless of Bad Omen level, it will always give the same effect.

Once the player gets the Bad Omen effect $$, an animation similar to the one displayed when dying with the Totem appears, showing the effect's symbol rotating on the screen.
 * The same applies when receiving the Hero of the Village effect.

Bad Omen can be removed through all conventional methods, such as drinking milk.

Immune mobs
Only boss mobs are immune to Bad Omen; however, only players can trigger raids.

ID
Java Edition:

Bedrock Edition:

Trivia

 * If the player leaves a village during a raid, receives Bad Omen, and returns to the village, the effect will be canceled, but has no effect on the existing raid.
 * If the player kills a patrol captain indirectly, they can avoid receiving the Bad Omen debuff. This includes burning with fire or lava, drowning, explosions, and suffocation, among other things.
 * Strangely, this also includes killing a captain with a fireworks loaded crossbow.
 * If the player kills a captain while in a village, the animation, raid bar, and Bad Omen effect appear simultaneously. The effect disappears immediately after, then "flashes" again approximately 1 second later.