Jump to content

Recommended Posts

Posted

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.

Posted

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.

Guest
Unfortunately, your content contains terms that we do not allow. Please edit your content to remove the highlighted words below.
Reply to this topic...

×   Pasted as rich text.   Restore formatting

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

Announcements



×
×
  • Create New...

Important Information

By using this site, you agree to our Terms of Use.