slipcor/TreeAssist

[bug]unbreakable axe will get destroyed

Closed this issue · 19 comments

hi, i just tested the unbreakable axe will get destroyed when chop trees

when i give a wooden axe unbreakable and chop tree, it still count durability and destroy the axe.

did you set the "Disable Durability Fix" to true? what you are doing might be a hacky thing that is disabled by default ?

did you set the "Disable Durability Fix" to true? what you are doing might be a hacky thing that is disabled by default ?

yes i tried, with it is true, i cannot break any tree, even with unbreakable tool or without unbreakable , when i use an wooden axe. And with it is true, unbreakable item still got destroyed

It appear to be same as false

okay please set it to true and do the following:

https://github.com/slipcor/TreeAssist/blob/master/doc/debug.md

how exactly are you adding the unbreaking?

https://cdn.discordapp.com/attachments/804019242512810034/831236773921030185/TreeAssist.jar

Can you check with this build? I did not know there is a vanilla way of getting unbreak-ability :D if this does not work for you I have a second thing I can check next, but I would prefer this!

yep, this is working well.
adding unbreakable during when the tool is damaged or full durability and chop tree does not affect the durability
Is this build safe to use or should i wait you upload new one to spigotmc?

nice! thanks for reporting back.

if there are no more fixes this week, this will be the exact build I will be uploading :) it is completely safe :D

strange things happen again
this iron_axe with unbreakable can break tree, but no drop,
without unbreakable, it acts normal
image

ok please do a debug again, so we see what is going on 🤔

I am not sure what is happening on your end, by the looks of the debug there should be regular drops happening :/

https://cdn.discordapp.com/attachments/804019242512810034/831880361117352006/TreeAssist.jar

Can you try debugging with this build? it will add more information about your tool

aha! I expected this. the plugni thinks you have nothing in your hand.

are you by any chance in creative mode? it is normal that there is no drops there :)

I found the issue, it is not related to creative mode.

https://cdn.discordapp.com/attachments/804019242512810034/831914084340858910/TreeAssist.jar

Thank you for your time, this should work fine now :) a tool that was unbreakable was set to "no tool" internally which made some things easier but now it is proper, the breaking animation should support unbreakable tools now, and there should be drops, unless you are in creative :D

Great
I will try that tmr
Btw is there a way to instantly break the entire tree instead of one block pop up by one🤔?

yes, set "Delay Ticks" to -1 :)

https://cdn.discordapp.com/attachments/804019242512810034/832010381193904188/TreeAssist.jar

another small fix. I tested something else and found out that the axe is actually still getting damage. now it works!

great, is working : )