Posted April 19, 201411 yr Hi, I am having trouble getting an ore block to only be mined with an iron pickaxe or higher, and have all the other tools not drop an ore block. I heard that you could use the setHarvestLevel("pickaxe", 4); statement to make a block only mineable by a certain tier of pickaxes. But, when I try it with a wooden - stone pickaxe or shovel/axe, it still drops the block. Sorry if this is a stupid post, I'm extremely new to Forge. Let me know if you need the mod .java files.
April 20, 201411 yr I usually do it as so: public static void setBlockHarvestLevels() { exampleBlock.setHarvestLevel("pickaxe", 2); } This usually gets called during preInit.
April 21, 201411 yr fairly certain you can also do it in the block itself in public ModOreName() { super(Material.rock); this.setHardness(46); this.setHarvestLevel(toolClass, level); } section as well
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.