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-2683 Destroing blocks Resolved MC-3333 Blocks "unbreak" Resolved MC-4328 Slow mining Resolved MC-4724 block breaking resets Resolved MC-4907 Some blocks reset themselves after about 1/4 of the block has been mined Resolved

Comments 26

Duplicate of MC-2519

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
Ultimate Omicron

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!

Callum Tennant

😃

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