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:
www.spigotmc.org
www.spigotmc.org
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:
![www.spigotmc.org](/proxy.php?image=https%3A%2F%2Fsecure.gravatar.com%2Favatar%2Fb55f10f49dd563380463937497e787b3%3Fs%3D96%26d%3Dhttps%253A%252F%252Fstatic.spigotmc.org%252Fstyles%252Fspigot%252Fxenforo%252Favatars%252Favatar_m.png&hash=bc072dfe38805af9a265d2dd64288557&return_error=1)
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](/proxy.php?image=https%3A%2F%2Fwww.spigotmc.org%2Fdata%2Favatars%2Fm%2F587%2F587363.jpg%3F1634728203&hash=dc52ab29010a850a6ffadc3c64f80dcc&return_error=1)
Solved - Players tool
How would I check if the players tool is appropriate for the block they are mining
- 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