There are both Block.isValidTool() & Block.isPreferredTool() but they tell you if the block will drop something if you mine it with that tool. I want to know which tool can be used to mine the block faster. For example for dirt, a shovel. For oak logs, an axe & for wool, shears.
I can use paperweight (NMS) but I would prefer not to. I've seen the following relating posts but they aren't what I want & Item.canDestroySpecialBlock() seems to no longer be a thing for 1.20.4:
I can use paperweight (NMS) but I would prefer not to. I've seen the following relating posts but they aren't what I want & Item.canDestroySpecialBlock() seems to no longer be a thing for 1.20.4:
Solved - How to get the tools you need to break blocks
I want to get the tools I need to break a block. The Block#getDrop(sametools).isEmpty () method cannot be used due to various reasons. I searched for...
www.spigotmc.org
Solved - Players tool
How would I check if the players tool is appropriate for the block they are mining
www.spigotmc.org
- Version Output
-
[21:30:41 INFO]: Checking version, please wait...
[21:30:41 INFO]: This server is running Paper version git-Paper-370 (MC: 1.20.4) (Implementing API version 1.20.4-R0.1-SNAPSHOT) (Git: 1fa48d1)
You are 11 version(s) behind
Download the new version at: https://papermc.io/downloads/paper