Question: are villagers attracted to anything?
Answer: Like all passive mobs, villagers are attracted to light, however, villagers prefer houses over lighted areas, no matter whether the house has any source of light or not. ... Villagers and iron golems will do nothing when you break down their houses or steal from their chests.