Closed CharCharthemonkey closed 1 year ago
Hi,
So this is wonderful in that it allows my unbreakable Gobber End Paxel to be used in the table. Although, the primary reason for this integration is to provide the player with the reward of using an unbreakable multi-tool to do the knife cutting.
Problem is your code does not check to see if the tool has the vanilla "unbreakable" tag in its NBT, so it takes damage with each use.
Would it be possible for you to also check for that? Fortunately, vanilla already has code to do this check
you could update your code to use the isDamageable() method in the ItemStack class
If you could incorporate a check to see that the stack is supposed to take damage before damaging it, that would solve the issue.
This would allow any other mods leveraging the c:knives tag with an unbreakable to tool to work as well.
Thank you for considering and the help.
Regards,
kwpugh
Thank you for help. This was fixed in the 1.6.1 beta
using the paxel in the botanical table it isnt seeing that the paxel is unbreakable but has durability and still breaks it even know it shouldnt be able to