Hello everyone, I've starting making a mod with a whole bunch of different tools and came to realise that I needed to make them repairable.
So, im trying to figure out to make it so that when i place an emerald, it will be repair my emerald tools. Can anyone tell me the code for that? Would I Put it in my main class file? or my tool file (EmeraldPickaxe.java).
This is what i used to created my tool material:
"public static EnumToolMaterial EMERALD_PICKAXE = EnumHelper.addToolMaterial("EMERALD_PICKAXE", 1, 0, 4.0F, 3, 5);"
and then declared it:
"pickaxeEmerald = new ItemPickaxeEmerald(pickaxeEmeraldID, EMERALD_PICKAXE).setUnlocalizedName("pickaxeEmerald");"
I'm fairly new to modding, and some things are difficulty. Thanks in advance!