Minecraft – How would one be able to assign items a texture based upon their name

minecraft-java-edition

I am currently making a mini resource pack for Minecraft 1.9 and when I got to the Elytra I was thinking of making it so players could have a different texture for the item depending on what name they gave it in an anvil. So like maybe when they get the Elytra its whatever default texture I decide to give them but then if they take it to an anvil and rename the Elytra to say… Grass Wings it changes to a more green version of the Elytra.

Best Answer

Each texture is assigned to each item, therefore this would not be possible without a mod. However you could make multiple items like "Green Elytra" and "Elytra" if the item you are basing the texture off of has multiple versions.