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

So I'm trying to m make this mod, and about halfway I'm implementing armour, It all goes well,

until I try to put my armour on. When I equip the armour, it's not shown on my character,

and my Eclipse Console gets spammed with the following error:

 

http://pastebin.com/wnR7Pqdt

 

I put the images (armour_1.png & armour_2.png) in:

jars > bin > minecraft.jar > armor

 

My Code:

http://pastebin.com/Vg9LrSxk

 

Item_IngotShinyGold.java:

http://pastebin.com/WAT1Gk0j

  • Author

I have it in:

Eclipse > Items

Eclipse > Client > Items

Eclipse > Client > Bin > Items

Eclipse > Server > Items

Eclipse > Server > Bin > Items

Jars > Bin > Minecraft.jar > armour

  • Author

I don't know where you got minecraft inside of eclipse...?

 

Anyway, I exported the mod, and put it in my MC jar. I put the

textures in "items" and the armour textures in "armor". I still

didn't get the right texture, so I'm guessing I goof'd up with the

name of the NameOfArmour_1 and _2 png files?

 

It's suppost to be the same as in the EnumArmorMaterial.java right?

Replace this line:

 

public static final Item Helmet_ShinyGold = (new ItemArmor(2006, EnumArmorMaterial.SHINYGOLD ,5,0 ).setItemName("Shiny Gold Helmet"));\

 

With:

 

public static final Item Helmet_ShinyGold = (new ItemArmor(2006, EnumArmorMaterial.SHINYGOLD ,RenderingRegistry.addNewArmourRendererPrefix("AN_ARMOR_NAME"),0

).setItemName("Shiny Gold Helmet"));

 

 

And also in your item class add:

 

    public String getArmorTextureFile(ItemStack par1)

    {

        return "FILE_TO_ARMOR_RENDERING";

    }

    public String getTextureFile()

    {

        return "FILE_TO_ITEM_TEXTURE";

    }

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.