1.14.4, 19w34a, 19w35a, 1.15.2, 1.16 Pre-release 8, 1.16.1, 20w30a
If all villagers are struck by lightning during a raid, the villagers will then become witches but the raid still continues. You can however get a raid victory with no villagers and can still achieve the "Hero of The Village" advancement and status effect.
- Cause a raid in a village
- Run the command to turn all villagers into witches
/execute at @e[type=villager] run summon lightning_bolt
→ The bossbar then fills up as the villagers that are now witches join and raids the village
You can however end the raid in a defeat by just destroying the all of the nearby workstations/jobsites, beds and bells in the premises.
- relates to
MC-195062 Raids often will not end in defeat when all villagers are dead if there are job sites in the village
MCPE-50547 Raid still continues after a villager turns into a witch