I tried to copy all the s*** from EnumToolMaterial to EnumToolExample (my file)
then i created ItemExampleSword and a ItemExampleTool and renamed all the names to Example and all of that you need to do before 1.8 but now i only get a error..:
There is most likely a variable in ItemExampleTool that uses EnumToolMaterial. Make sure to rename "Material" to "Example". Perhaps it's for a damage value or strength? Depending on your editor, hit ctrl + F and you can Find the variable. Search for Material or something. Hope that helped.