Name dependent texture pack 1.21

How can i make a texture pack that depends on the name that the item has? Like: i rename an Iron sword to Copper sword then the texture changes

Continue to help post