Minecraft wiki entry for Villager_(old), associated text: A dispenser can be used, if adjacent to a villager, to place armor on it. While not visible in most cases (other than pumpkins and mob heads) the equipment will be fully functional; for example, the Thorns enchantment will hurt zombies that attack a villager with a piece of armor enchanted with the Thorns enchantment equipped.