3: Build your house near a village. Then, destroy every bed in the village but your own. Next, wait for nighttime. Make sure the villagers can get in your house, and ONLY the villagers. Once all the villagers are in your house, lock them up using an iron door.