Posted January 4, 201312 yr I know that you can change an itemstacks texture on the fly, but is it possible to change armors texture on the fly, without modifying the armor's file "you seem to be THE best modder I've seen imo." ~spynathan ლ(́◉◞౪◟◉‵ლ
January 4, 201312 yr I'm not sure about the on the fly part, but you can make an armor invisible, just change the texture file to all alpha.
January 20, 201312 yr I know it's a little late but here's how I do it in 1.4.7 In your Item class @Override public String getArmorTextureFile(ItemStack itemstack) { if (itemstack.itemID == MinerHelmet.itemHelmet.itemID) { // change textures to match the state of the light (on|off) if (MinerHelmet.getInstance().getLightSwitchedOff()) { return "/textures/helmetLightOff.png"; } else { return "/textures/helmetLightOn.png"; } } return "/textures/helmetLightOff.png"; }
January 22, 201312 yr Author Thanks, now maybe I can push my next release in about week "you seem to be THE best modder I've seen imo." ~spynathan ლ(́◉◞౪◟◉‵ლ
January 24, 201312 yr Author Quick question, how did you get the Boolean getlightswitchedoff to be ItemStack specific? "you seem to be THE best modder I've seen imo." ~spynathan ლ(́◉◞౪◟◉‵ლ
January 24, 201312 yr I would suppose its a keybinding that toggles it and registers the variable into @Mod file or its part of the item class, though first is easier. ~I was here~
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.