Minecraft wiki entry for Raid, associated text: If all illagers are killed in the final wave, any player who has killed an illager in the raid receives the Hero of the Village effect at the same level as the Bad Omen level of the raid. The villagers shoot off fireworks, and the Raid bar displays "Raid - Victory". The Hero of the Village effect activates only when the player is in the village in where the raid was defeated, and the effect wears off if the player leaves the village.