Use the vanilla advancement system and add hat related tasks for the player.
- own tab?!
- For every hat a crafting task (build a chopping hat...)
- For every hat a usage task (chopping a tree...)
- Build all hats
- enchant a hat
- repair a hat
- coloring a hat
- craft a hat rack (when added)