Minecraft wiki entry for Armor, associated text: Armor worn by a non-player mob does not lose durability when attacked by any means. Helmets that are worn by undead mobs lose durability when exposed to sunlight due to absorbing the mob's damage from sunlight.