add tag xylo_hats:{hat:1} to the item you want to be a hat
the item shall be a helmet or any kind of wearable item (head slot)
the item is converted to paper when on head slot. so the custom model must be linked to paper