Tutorials/Defeating a village raid

This tutorial will show you how to defeat a village raid.

Reasons
Raids are events where illagers, ravagers and witches come to attack and kill villagers and players in a village. They can be difficult to tackle without resulting in the death of any of the villagers.

Defeating a raid will require good armor and weapons. If player defeats a raid, he or she will get the hero of the village status effect, which makes villagers give discounts on their trades and reward player with some useful items. Raids are also one of the best ways to get the totem of undying, enchanted iron gear and drops from illagers and witches.

Materials
To defeat a raid you'll need:


 * A diamond sword enchanted with Sharpness V,Looting III(Optional), Unbreaking III, Fire Aspect II, Sweeping Edge III and Knockback II (optional).
 * A Bow enchanted with Power V, Infinity(optional), Flame, Unbreaking III and Punch I (recommended).
 * A crossbow enchanted with Quick charge III, Piercing IV and Unbreaking III.
 * A crossbow enchanted with Quick Charge III, Multishot and Unbreaking III.
 * A stack of arrows.
 * A diamond helmet enchanted with both Protection IV and Projectile Protection IV or one of them, Unbreaking III and Mending.
 * A diamond chestplate enchanted with both Protection IV and Projectile Protection IV or one of them, Unbreaking III and Mending.
 * A diamond legging enchanted with both Protection IV and Projectile Protection IV or one of them, Unbreaking III and Mending.
 * A diamond boot enchanted with both Protection IV and Projectile Protection IV or one of them, Unbreaking III and Mending.
 * A stack of cooked beef (or other similar food item).
 * Some golden apples.
 * A shield enchanted with Unbreaking III and Mending (optional).
 * A few iron golems.
 * A water bucket.
 * A stack of dirt.
 * A few potions of healing, regeneration and speed.
 * A stack of TNT blocks and a flint and steel.
 * A few cobwebs (optional).
 * Some milk buckets.

Preparing the village
First you'll need to prepare a village for the raid, because evokers and vindicators can open/break doors and they will kill villagers and if a couple of the villagers die then the player will not receive the hero of the village, but will get bad omen. In Bedrock Edition Vindicator can only break door, while evoker cannot open the doors, also witch only attack iron golem and player, lastly illagers don't attack baby villagers so if the village have baby villagers, raid won't end till baby villagers grow, died or all beds in village destroyed.

Desert, plains and snowy tundra villages are recommended due to the lack of trees, which makes raiders more visible. Some village building may also help you defeat raid, use balcony house to attack raiders from distance(depend on architecture and terrain where raid occured), ex:raiders are more visible at plains village in small islands in the middle ocean, but can be difficult if some building in village generate in mountainous or hills area.

Raids can happen in player-made villages, so make sure to surround your village with a wall. Before getting bad omen, make sure to hide villagers inside their houses and block off doors and windows to not let illagers reach them(note: vex can pass through wall). It will be easier to hide villagers during nighttime because they go to their beds for sleeping, however defeating raid during nighttime can also quite difficult as player may also facing with other hostile mobs such as creeper, skeletons, etc.

Getting Bad Omen
After preparing the village, you need to get bad omen status effect by killing an illager captain. Illager captains spawn in pillager outposts, woodland mansions and illager patrols.

Triggering the raid
Once you get the bad omen effect, go back to the village and you'll see that raid bar appears and bad omen will be removed. Each bad omen level will increase the chance of vindicators and pillagers spawning with enchanted weapons.

Here are the waves you'll get depending on the difficuly you set, 3 waves on easy, 5 waves on normal and 7 at hard.


 * Java Edition


 * Bedrock Edition

Starting The Battle
Once the raid starts ,villagers will start running and sweating ,and raiders will spawn around 50 blocks(actually depend on render distance and suitable block to spawn) away from the village and here are some instructions:


 * Vindicators deal a lot of damage so make sure to use your piercing crossbow to shoot at them from far distance.


 * Witches are more dangerous if they spawn in group of 3 because they will harm you easily regardless of the enchanted armor so use your crossbows to kill them from a safe distance.


 * If you were attacked by a lot of vindicators,vexes,ravagers and pillagers,then bring them to iron golems.


 * If you see many evokers don't attack them initially because they can reinforce and summon vexes to attack you even they are out of their detecting range,so let iron golems attack them.


 * If you are followed by more than one ravager,provoke them first and let iron golems do the rest for you or build 8 block tall pillar throw tnt at them.


 * If you are followed by many vindicators,then build a 2 blocks tall protection pillar and stand on it and they won't be able to reach you and use your sword to attack and kill them.


 * If you are attacked by many vexes then use tnt to blow them up.


 * If you weren't able to detect raiders you can use a bell to reveal them., additionally raiders produce unique horn sounds which they play sounds frequently during raids and sound is centered from raiders themshelves, so the louder the sounds, the closer raiders they are. Iron golem spawn naturally from village can also detect raiders location, if you see iron golem just staring downward(not staring at player), that mean raiders spawn underground.


 * If you are poisoned then drink milk.


 * Avoid melee attack on witch, vindicators and pillagers.

If you defeat the raid for your first time you'll get the hero of the village advancement.

If you get stuck in a raid loop kill all the raiders except for one and then trap him.