Jump to content
View in the app

A better way to browse. Learn more.

Forge Forums

A full-screen app on your home screen with push notifications, badges and more.

To install this app on iOS and iPadOS
  1. Tap the Share icon in Safari
  2. Scroll the menu and tap Add to Home Screen.
  3. Tap Add in the top-right corner.
To install this app on Android
  1. Tap the 3-dot menu (⋮) in the top-right corner of the browser.
  2. Tap Add to Home screen or Install app.
  3. Confirm by tapping Install.

Featured Replies

Posted

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 ) );


}


}


  • 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.

  • 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

  • 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.

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

Important Information

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

Configure browser push notifications

Chrome (Android)
  1. Tap the lock icon next to the address bar.
  2. Tap Permissions → Notifications.
  3. Adjust your preference.
Chrome (Desktop)
  1. Click the padlock icon in the address bar.
  2. Select Site settings.
  3. Find Notifications and adjust your preference.