Hello! Sorry if it's been asked already but I'd like to know if the method "setHarvestLevel" 's been change or something like that.
Cause however I use it in my code
Block.setHarvestLevel([tool], [level]);
this.setHarvestLevel([tool], [level]);
setHarvestLevel([tool], [level]);
And wherever in fact, it just keep on telling me it's not defined. There's no include proposed or anything, it'll only ask me to create a new function with this name.
I've been searching for hours now and as I just started it's really annoying. I'm starting to believe I made a mistake while installing the environment, though I've checked I followed this tutorial : "http://www.minecraftforum.net/forums/mapping-and-modding/mapping-and-modding-tutorials/2235074-tattys-1-8-modding-tutorial-next-tutorial-blocks" and shouldn't have missed anything...
So if you have any idea of what I'm doing wrong, please tell me!
Here's some code :
public Anderosite(){
super(Material.ground);
setStepSound(Block.soundTypeStone);
setHardness(5.0F);
setUnlocalizedName(Reference.MOD_ID+"_"+name);
setCreativeTab(CreativeTabs.tabBlock);
setHarvestLevel("pickaxe",3);
}
GameRegistry.registerItem(araitaOre, "AraitaOre");
araita.setHarvestLevel("pickaxe", 2);
GameRegistry.registerBlock(araita, "Araita");
GameRegistry.registerBlock(anderosite, "Anderosite");
GameRegistry
Here's the exact error message : "The method setHarvestLevel(String, int) is undefined for the type Block."
I'm using eclypse on widows seven (don't think it matters but who knows... not me^^)
Thanks for your replies!