Posted August 19, 201312 yr 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
August 19, 201312 yr 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-
August 19, 201312 yr 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?
August 19, 201312 yr 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-
August 19, 201312 yr 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.