A few things I would like to say first. One, I know that no one really uses Risugami's modloader (How could they it hasn't been updated in years.) anymore, it's all about forge. Two, I can't really just use forge, because I am making a beta 1.7.3 mod, forge was around but it wasn't anything like it is today.
Why am I making a mod for beta 1.7.3 and not something people actually play? Well, look at my other posts and I believe you will be able to figure it out yourself.
So, in the mod I am working on it adding in a few ores and blocks made of those ores. Instead of giving them low block hardness I decided I would try making pickaxes effective against them by added them to ItemPickaxe.java, which that just made all the textures change. Screenshot here!
Other than that problem, it occurred to me that even after I fix that problem I will still be able to mine it with any pickaxe, which I don't want. So, I was wondering how you add a block harvest level? I tried looking at other blocks that have harvest levels but didn't really get how I add that to my own block. So, if someone could also help me with that I would very much appreciate it!
Thank you, for taking the time to read this! If you know how to help me please leave a reply below, but you can also contact me on discord at LukeZyga#9142. I would prefer you leave a reply so that other people with this problem can find it! But if you do message me, please state that you read this post that way I am not confused as to who you are! Again thank you I appreciate it very much!!
I'm not sure why the textures changed; did you modify the default texture atlas (a single texture file was used for all textures prior to 1.5)? Any new textures have to be added to blank areas and existing textures unaltered, I don't know if ModLoader handles mod textures any differently and only have experience with post-1.5 textures (which should never have this issue since each block/item has its own texture).
As for making only specific tiers of pickaxes able to mine blocks, the issue is that you check for "Material.rock" before checking for your custom ores - if they have the material of rock (as with vanilla ores) the game never checks for them because as soon as it sees that the material is rock it returns true regardless of the tier used; you must move it to the very end of the "if" statements (where it checks for Material.iron):
// Delete this code
if(block.blockMaterial == Material.rock)
// Custom blocks
if(block == mod_Ores.SuperGemBlock)
return toolMaterial.getHarvestLevel() == 3;
// Move check for Material.rock down here
return block.blockMaterial == Material.iron || block.blockMaterial == Material.rock;