Almost forever axe (Tool durability calculation stops if the item used is dropped on a ground)
Un4ea42Zer0 opened this issue ยท 0 comments
Checked for existing issues
- I have checked for existing issues, and have found none.
Tested latest version
- I have checked that this occurs on the latest version.
GregTech CEu Version
gtceu-1.21-1.3.1
Minecraft Version
1.21
Recipe Viewer Installed
None
Environment
Singleplayer
Cross-Mod Interaction
No
Other Installed Mods
Expected Behavior
When an axe is used in a tree it cuts it all while using the exact durability = to a number of blocks of wood chopped.
Actual Behavior
When the axe destroys the block it starts to reduce durability incrementally. But in doing so you can throw the axe on the ground by simply pressing Q right after the block is broken and the durability will be computed for the few blocks it has broken already while continuing to do so.
Steps to Reproduce
- Start breaking the wood block.
- As soon as the first blocks break, drop the axe by pressing Q.
- Profit (You use less durability )
Here is a demonstration of this behavior:
Additional Information
This is likely caused by the fact that the durability of an item does not decrease when it is dropped causing the item not to lose as much durability.
My suggestion on a possible fix is to make the item not droppable while its durability is decreasing. OR To simply stop breaking wood if the axe is not in the player's hands.