How would one be able to assign items a texture based upon their name?
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
you can do it based on damage values. although you'll need to give it using commands and having unbreakable:1b applied to it so it doesn't change textures whilst getting damaged. here's a tutorial I found:
and you can make the elytra function as wings using command blocks.Pictures about "How would one be able to assign items a texture based upon their name?"
How do you change the texture of a name in Minecraft?
Go to Finder>Library>Application Support>minecraft>Texture Packs, and drag your . zip in. Now you can use your texture pack by selecting the button "mods and texture packs" in the main menu of Minecraft, and clicking on your pack.Name dependent ITEM textures in Minecraft 1.16+ (Rename items to change the texture)
More answers regarding how would one be able to assign items a texture based upon their name?
Answer 2
I don't think you can do this, but it would be possible to use a command block to create green particles (try HappyVillager) around the "leaf Elytra". I would suggest using a command generator (like "MC stacker") to make this command, and no mods/plugins/resource-packs should be requred for this method. The only problem is that the Elytra will never change color, just look epic on the ground.
Sources: Stack Exchange - This article follows the attribution requirements of Stack Exchange and is licensed under CC BY-SA 3.0.
Images: Laker, Klaus Nielsen, Tom Fisk, Steve Johnson