changing item model based on name

How do I change an item’s model based on what name you give it in an anvil?

Continue to help post