Jump to content

Armors texture not loading when build


Recommended Posts

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.setTextureName(type, part4);


public void setTextureName( String Type, int part ){

	if( armorType == 0 || armorType == 1 || armorType == 3 ){

		this.TexturePath += "Armor_1.png";


		this.TexturePath += "Armor_2.png";



public String getArmorTexture( ItemStack itemstack, Entity entity, int slot, int layer){

         return this.TexturePath;


public void registerIcons(IconRegister register){

	this.itemIcon = register.registerIcon( Refrence.MODID + ":" + this.getUnlocalizedName().substring( 5 ) );



Link to comment
Share on other sites

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.

Link to comment
Share on other sites

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.

Unfortunately, your content contains terms that we do not allow. Please edit your content to remove the highlighted words below.
Reply to this topic...

×   Pasted as rich text.   Restore formatting

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.


  • Create New...

Important Information

By using this site, you agree to our Terms of Use.