Posted January 10, 201510 yr I want to make an item that gets a different texture in the player's hotbar (or inventory) depending on some external state (i.e. NBT info or metadata). How can I do this? Any tutorials for this? Thanks,
January 10, 201510 yr You could try overriding the method getIconFromDamage in your Item class. You'd have to change the item damage to get different textures though. I'm sure there are other ways, but if's just a suggestion
January 10, 201510 yr If you only want to change the icon based on metadata, override getIconFromDamage(int damage) . If you also want to change the icon based on the NBT or something else, override getIconIndex(ItemStack) . Don't PM me with questions. They will be ignored! Make a thread on the appropriate board for support. 1.12 -> 1.13 primer by williewillus. 1.7.10 and older versions of Minecraft are no longer supported due to it's age! Update to the latest version for support. http://www.howoldisminecraft1710.today/
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.