GregTechCEu Modern

GregTechCEu Modern

6M Downloads

Almost forever axe (Tool durability calculation stops if the item used is dropped on a ground)

Un4ea42Zer0 opened this issue ยท 0 comments

commented

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

image

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

  1. Start breaking the wood block.
  2. As soon as the first blocks break, drop the axe by pressing Q.
  3. Profit (You use less durability )

Here is a demonstration of this behavior:

gt_axe_bug

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.