mojira.dev
MC-3449

Block breaking resets when the item you're holding changes

When playing Minecraft I noticed, during the breaking of a grass block, if a block item is picked up, the breaking of the grass block is either reset or "Goes back in time" and takes longer to break.

I expected to be mining grass and collecting dirt.

When I would pick up dropped dirt blocks the breaking of the grass block would reset or take a little longer.

1. Select Dirt in your hotbar.
2. Start breaking grass.
3. As you update the amount of dirt by either picking up dirt or dropping it the block damage will reset.

Linked issues

MC-6672 Mining reset switching items/damage value of an item changes. Resolved MC-7148 Block damage is reset when stack count changes. Resolved MC-9000 SMP - Breaking Blocks on Laggy Server is Buggy Resolved MC-9625 Block mineing issue Resolved MC-10090 Breaking a block resets breaking animation Resolved

Comments 26

I can only reproduce this if I am punching the dirt with an empty hand, and then pickup an entity from the ground, which causes the switching tool issue as Tails has linked. Otherwise, picking up a block while mining another block doesn't cause it to start mining from the beginning.

Final part of description of MC-3333 refers to block breaking reset on pickup of block entity

I think this could be fixed by simply counting empty hands and all blocks as the same tool.

Wouldn't that cause all blocks being retrievable by a hand?

16 more comments

Thing is; This was supposed to prevent cheating on durability by switching tools. However, when any aspect on the itemstack in changes the damage is reset. This is incorrect, since durability and count changes should not affect the mining of a block. So it's a bug created by a previous fix.

Yay! The magical bone is at it again!

This bug has been back for a while, not sure why this hasn't been reopened.

Can confirm in 23w31a.

Alex Boguszewski

Nathan Adams

Confirmed

block, damage, mining, reset, resetting, value

Minecraft 1.4.4, Minecraft 1.4.5, Minecraft 1.4.6, Minecraft 1.4.7, Snapshot 13w02a, Snapshot 13w02b

Snapshot 13w03a

Retrieved