Jump to content
Search In
  • More options...
Find results that contain...
Find results in...

[1.8]Keep ItemTool From breaking.


Recommended Posts

I think if you return -1 from getHarvestLevel, the tool will not be able to harvest anything. If you also return 0 (or some low value) from getDigSpeed it will behave pretty much like a stick.

These two methods recieve an ItemStack as parameter, so can check if your tool is already broken and act accordingly.

Link to comment
Share on other sites

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.

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.


  • Create New...

Important Information

By using this site, you agree to our Privacy Policy.