This site works best with JavaScript enabled. Please enable JavaScript to get the best experience from this site.
public static Item pickAxeName = (new ItemPickaxe(500,EnumToolMaterial.DIAMOND).setUnlocalizedName("pickaxe").func_111206_d("pickaxe"));
GameRegistry.registerItem(pickaxe, "Pickaxe");
MinecraftForge.setToolClass(pickAxeName, "pickaxe", EnumToolMaterial.DIAMOND.getHarvestLevel());
Quote from Xnet Could this be what your missing? MinecraftForge.setToolClass(pickAxeName, "pickaxe", EnumToolMaterial.DIAMOND.getHarvestLevel());
Quote from xX_RazorBeast_Xx No that doesn't work either.
Quote from xX_RazorBeast_Xx I recently made a pickaxe in my mod file: public static Item pickAxeName = (new ItemPickaxe(500,EnumToolMaterial.DIAMOND).setUnlocalizedName("pickaxe").func_111206_d("pickaxe"));
Quote from Voussoir I dont think EnumToolMaterial.DIAMOND* is a thing. Diamond tools use EnumToolMaterial.EMERALD. Are you not receiving an error on that line? *Edit: As of 1.5.2, I know for a fact that ETM.DIAMOND is not a thing
EnumToolMaterial.EMERALD
I also added it in the GameRegistry:
But when I run the program, the pickaxe won't break cobblestone.
It takes very long to break the cobblestone and when it breaks, there is no drop.
What do i have to do to break the cobblestone efficiently?
No that doesn't work either.
I don't know, that's the only thing that I see could be wrong
I dont think EnumToolMaterial.DIAMOND* is a thing. Diamond tools use EnumToolMaterial.EMERALD. Are you not receiving an error on that line?
*Edit: As of 1.5.2, I know for a fact that ETM.DIAMOND is not a thing
Right, Diamond is called emerald in the source code!
So use