I'm trying to make it so you need an axe to harvest wood and a shovel to harvest dirt.
I have tried to use the line
MinecraftForge.setBlockHarvestLevel(Block.wood, "axe", 2);
and also:
MinecraftForge.setBlockHarvestLevel(Block.wood, 0, "axe", 1);
MinecraftForge.setBlockHarvestLevel(Block.wood, 1, "axe", 1);
MinecraftForge.setBlockHarvestLevel(Block.wood, 2, "axe", 1);
MinecraftForge.setBlockHarvestLevel(Block.wood, 3, "axe", 1);
But, none of these have any effect. I can still harvest wood with my hands. I have tried similar code for dirt blocks, but it also had no effect.
However, if I use it on stone:
MinecraftForge.setBlockHarvestLevel(Block.stone, "pickaxe", 2);
Stone can only be mined with Iron or greater.
Any ideas on why it would work on stone but not on wood or dirt?