Swaps the tools to the effective one if it's in hotbar.
For mod devs who want to add compatibility with Automatic Tool Swap, you simply need to implement
de.melanx.toolswap.DiggerLike
into your tool class if it's not a child of DiggerItem
. Also add the one method,
alternatively the other methods. This way, your tool will be considered when swapping. Just add this to your
build.gradle
:
repositories {
maven {
url = "https://modmaven.dev/"
}
}
dependencies {
compileOnly fg.deobf("de.melanx:ToolSwap:1.20.1-5.0.3+")
}