Did you try looking at the doc comment or signature of Block#setHarvestLevel? The first argument is the tool class (e.g. pickaxe, axe, shovel), not the localised name of the block.
Side note: You should always annotate override methods with @Override. This will ensure that they actually override a super method.
Rollback Post to RevisionRollBack
Chisel Facades: For all your decorative pipe-hiding needs.
Please don't PM me to ask for help or to join your mod development team. Asking your question in a public thread preserves it for people who are having the same problem in the future. I'm not interested in developing mods with people.
The first argument is the tool class (e.g. "pickaxe", "axe", "shovel"), not the localised name of the block.
Choonster has kindly explained exactly what you need to do.
Remove the call to get the localized name. Replace it with the correct argument. Read the Javadocs for very detailed instructions (in Eclipse, you do this by hovering over the method name)
We cannot re-write it for you because it is your mod, not ours.
Rollback Post to RevisionRollBack
Click this banner for a list of illegal mod distributors -- only download from legal sites!
okay I see now after a minute and I am new to this modding thing and the forums thing and I'm ecstatic about the people and very grateful of what they have done for me so far!
I would like this ore to only be harvested by a diamond pic and nothing less, here is what I have so far...
Did you try looking at the doc comment or signature of Block#setHarvestLevel? The first argument is the tool class (e.g. pickaxe, axe, shovel), not the localised name of the block.
Side note: You should always annotate override methods with @Override. This will ensure that they actually override a super method.
Chisel Facades: For all your decorative pipe-hiding needs.
Please don't PM me to ask for help or to join your mod development team. Asking your question in a public thread preserves it for people who are having the same problem in the future. I'm not interested in developing mods with people.
okay thankyou I'm getting better I'm very thankful for input
I do have one request could you please explain how I put this I couldn't figure it out, sorry...
this.setHarvestLevel(getLocalizedName(), 3);
I would like only a diamond pic to mine this could you re-type this correctly for me
Choonster has kindly explained exactly what you need to do.
Remove the call to get the localized name. Replace it with the correct argument. Read the Javadocs for very detailed instructions (in Eclipse, you do this by hovering over the method name)
We cannot re-write it for you because it is your mod, not ours.
okay I see now after a minute and I am new to this modding thing and the forums thing and I'm ecstatic about the people and very grateful of what they have done for me so far!