Flockshot Posted June 5, 2014 Posted June 5, 2014 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 ) ); } } Quote
Flockshot Posted June 5, 2014 Author Posted June 5, 2014 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. Quote
TwIxToR_TiTaN Posted June 5, 2014 Posted June 5, 2014 Did you save it as .png or .PNG? (just curious) Quote Only code when your having fun doing it.
Flockshot Posted June 6, 2014 Author Posted June 6, 2014 *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 Quote
Flockshot Posted June 6, 2014 Author Posted June 6, 2014 I dont think so.Because the armors texture were working fine in eclipse. Quote
Flockshot Posted June 6, 2014 Author Posted June 6, 2014 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 Quote
Recommended Posts
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.