Minecraft wiki entry for Survival_in_an_infinite_desert, associated text: Then when all your defensive preparations are ready, do a last double-check of your perimeter and make sure there are no gaps a hostile mob can sneak through (except spiders probably, but they are the easiest to deal with). Then prepare to spend your first night in the village. Track all the villagers. When they are indoors, block them in by putting two blocks of sand in front of the door. Make sure you move a job block (see Tutorials/Village mechanics) inside the house (if you have traded with the villagers already, you may want to try to keep them with their job, so as not to reset any leveling). Also, put two blocks on either side of the door to stop mobs from attacking on the diagonal. Also, put an inner wall of sand 2 high inside the building to keep villagers going next to the walls and being attacked by mobs "through" the walls.