Minecraft wiki entry for Defeating_a_village_raid, associated text: Make sure you set your spawn in the village so if you die you can get back to the village before the raiders kill all of your villagers. Using a bed or the command /spawnpoint can help you set your spawn point in your desired location. A spawn point around the middle of the village is a good place since all the places around the village is around the same distance from you.