Posted June 5, 201411 yr I am facing a very strange problem I created a armor and it worked perfectly in eclipse. But when i built that the texture of the armors were not loading. Here is my armor class public class BlazeArmor extends ItemArmor { public String TexturePath = Refrence.MODID + ":" + "/textures/armors/" ; public BlazeArmor(int par1, EnumArmorMaterial par2EnumArmorMaterial, int par3, int part4, String type) { super(par1, par2EnumArmorMaterial, par3, part4); this.setCreativeTab(CreativeTabs.tabCombat); this.setMaxStackSize(1); this.setTextureName(type, part4); } public void setTextureName( String Type, int part ){ if( armorType == 0 || armorType == 1 || armorType == 3 ){ this.TexturePath += "Armor_1.png"; } else{ this.TexturePath += "Armor_2.png"; } } // public String getArmorTexture( ItemStack itemstack, Entity entity, int slot, int layer){ return this.TexturePath; } @SideOnly(Side.CLIENT) public void registerIcons(IconRegister register){ this.itemIcon = register.registerIcon( Refrence.MODID + ":" + this.getUnlocalizedName().substring( 5 ) ); } }
June 5, 201411 yr Author Okay sorry i fixed that. If anyone is having the same problem he can do what i did. When i built my mod it give me a .jar file. I just changed the .jar file to .zip file and it worked. Now how to change .jar to .zip. It is simple Extract the files form .jar and then archive it. Well sorry for disturbing guys.
June 5, 201411 yr Did you save it as .png or .PNG? (just curious) Only code when your having fun doing it.
June 6, 201411 yr Author *facepalm* A jar is a zip file with a different extension. I know that but it didnt worked for me until it wasnt in a .zip file extension
June 6, 201411 yr Author What i said previosly about the .zip file working it wasnt that it was the folder of my mod that was working .zip isnt working
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.