The Hats mod adds dozens of wearable cosmetic hats the player can acquire. Hats will randomly spawn on mobs, both passive and hostile.

When a mob wearing a hat is killed by the player, the hat will be added to the player's hat collection. Press "H" to access the hats GUI.

MORE INFO
Official Site