Minecraft wiki entry for Defeating_a_village_raid, associated text: A very effective strategy is to wall off entrances to villager houses; this way, there is no way for the raiders (other than Vexes) to access the villagers inside the houses, effectively keeping them safe while you deal with the raiders. An easy way to get the villagers into their houses to begin with is to ring a bell. Have some villagers hidden underground. If possible, have a dispenser that splashes them with invisibility.