Hi everyone!
This is the first time I am trying to make a mod, so forgive me if I'm acting dumb.
I'm trying to create a custom sword, and I used this code to create the material for the sword:
public static final Item.ToolMaterial TESTMATERIAL = EnumHelper.addToolMaterial("TESTMATERIAL", 2, 192, 5.0F, 1.5F, 12);
but it gave me an error saying that Enumhelper cannot be resolved.
I already tried importing Enumhelper on the class but the import also gave me an error, I added this import code:
import net.minecraftforge.common.EnumHelper;
It also gave me a cannot be resolved error. The version of minecraft that I'm trying to mod is version 1.7.2 using forge-1.7.2-10.12.1.1060 version of forge.
Can anybody help?
Thanks.