FancyHats is a datapack that allows you to put anything from your mainhand into your head slot!
Simply do /trigger FancyHats
Be sure you are standing still while executing the command.
Simply delete the FancyHats folder and replace it with the new one!