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 was looking into adding some custom armors ect. for my mod, however I'm having trouble working out how to add my custom armor/ repair item combo to the anvil repair system. From what I have seen it looks like it has to do with func_82845_b at the bottom of EnumArmorMaterial, if so is there a way to add it without editing the Enum?

 

Any help is greatly appreciated

 

Cheers, Alpha.

  • Author

I'm still having an issue with this, I can get it to work no problem by adding it into the enum, however anything I try to get it to work outside of this fails, is there something obvious that I'm missing? Thanks if you do respond - Alpha.

  • 3 weeks later...

public boolean getIsRepairable(ItemStack par1ItemStack, ItemStack par2ItemStack) {

return Your_Item == par2ItemStack.itemID ? true : super.getIsRepairable(par1ItemStack, par2ItemStack);

}

 

just add this to all your Amor parts (helmet, leggings, chest and boots), Your_Item is the item you want to repair the armor.

Hi, i was having the same problem, however, when i put it in my armor parts it gives me the error, "Incompatible operand types Item and int".

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.