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

Hello,

 

I am currently writing a mod which adds, among other things, custom tools and armor sets, I am trying to make these tools and armor sets repairable in an anvil, however the item I wish to repair them with will have metadata, I know I have to override the getIsRepairable method in my tool classes, however I am unsure of how exactly to code it as I am very new to this.

 

Can anyone help me?

 

Ethyl_Amine

i *think* you cant have both meta and reparable as the item damage is the meta, but you can use the NBTTagCompound of the item to store the different states

how to debug 101:http://www.minecraftforge.net/wiki/Debug_101

-hydroflame, author of the forge revolution-

  • Author

I don't think I've explained it very well in my topic post, to clarify, the tools will have the normal tool damage metadata, the ingot I wish to use to repair them in an anvil will have metadata, is this possible to do?

ok :\ i know you CAN do it, but not how

but what you have to do is check the meta of the item before allow it to be used as repair material :\

sorry

how to debug 101:http://www.minecraftforge.net/wiki/Debug_101

-hydroflame, author of the forge revolution-

  • Author

ok :\ i know you CAN do it, but not how

but what you have to do is check the meta of the item before allow it to be used as repair material :\

sorry

 

no worries, least I know it's actually possible to do now, so it's a step in the right direction

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.