Advanced-Tools

Advanced-Tools

58.5k Downloads

Tools Breaking

Ceifeire opened this issue ยท 6 comments

commented

So I am having an issue with my unbreakable tools shattering in my hands like vanilla tools. Well actually just my axe because of another mod called tree harvester, It enables a player to chop down any tree in one swing and use durability from the axe for each block chopped this way. In general this works fine but occasionally when the durability is low and the next tree you chop down has a certain amount of blocks over the durability, not sure how much the tool shatters instead of just breaking.

commented

What is the difference between shattering and breaking?

commented

So with this mod when a tool runs out of durability it breaks and enters a broken state. I was using shatter so as to use a different word for the tool actually breaking and leaving my inventory and not entering the broken state.

commented

Oh, now I understand the problem.
I'm gonna look into it.

commented

Can you send me a link to the tree harvester mod?
I tried it with Reap and it worked fine. So now I have to figure out whats different to the tree harvester mod.

Edit:
Is it this mod? https://www.curseforge.com/minecraft/mc-mods/tree-harvester

If yes I unfortunately can't look into their code, because it is closed source. It would be the best thing to open a new issue on their mod.
It seems that they just blindly decrease the durability of the tool, regardless of the tools implementation.

commented

Yes that appears to be the mod. Ok. I will reach out to them about the issue. thank you for the quick responses

commented

No problem. If they have questions about my mod, just tell me.