mojira.dev
MC-69865

Block breaking is not canceled when losing focus of a block

How to reproduce

  1. Look at a block and start mining it

  2. Walk / look away from the block so you lose focus of it while still holding left click - the cracks disappear, working as intended so far

  3. Without letting go of the mouse button, walk up to/look at it again so it is focused - cracks start to appear again, working well

  4. Walk / look away again - the cracks stay, there's your issue

See also MC-125127.

Linked issues

MC-8866 Breaking snow layers MC-65107 Breaking animation remains when moving out of range MC-90830 Cracks remain on block when moving head MC-91231 Player can dig blocks out of reach MC-98207 Break texture remains showing on block that didn't break MC-104550 problems with blocks MC-108808 Block Break Animationm Bug MC-111364 Leaving a block's reach range while mining it will cause the breaking texture to remain MC-120120 Can destroy unreachable blocks by constantly jumping and holding left click MC-123501 Breaking a block and moving cursor to border doesn't stop the breaking animation MC-124704 Block breaking animations not updating at edge of block MC-125127 Block Break Bug + Swing Delay MC-147471 Cat Pauses Mining MC-156636 Jumping up to break a block freezes the break MC-157524 Breaking animation shown when not breaking block MC-157577 Block shows its being broken when there is nothing breaking it MC-169823 during the swimming animation, the lower blocks do not break MC-171583 If youre jumping to mine a block, then as youre mining, stop mining it, it keeps the cracks MC-172706 Break torch and break the stone behind, and the breaking lines will keep. MC-179092 Block breaking not updating when sugarcane is broken on top of it MC-179486 tilled ground slowly breaking MC-181725 У блока остаётся текстура повреждений MC-185495 Blocks can be broken one block beyond range upward MC-194246 the cracked effect stays on blocks if done in a certain way (read description) MC-197136 mining glitch. MC-197645 A glitch with a tool and a bow MC-200034 Placing a bed then on oak logs and using an axe to chop the wood above does not make the wood break timer reset MC-200129 Block Shows Crack MC-201188 Block Breacking MC-207455 Block breaking texture MC-208523 Indirect crosshair focus changing doesn't prevent block breaking state MC-211640 glitch of block MC-212104 Possible to break block outside range MC-215357 Blocks retain hit damage when holding down the attack button outside range and moving in MC-220518 block problem MC-223391 Breaking Texture glitch MC-224866 Block destruction don't disappear after moving camera into air MC-229237 Mining blocks out of reach by jumping does not reset block breaking counter. MC-233557 Breaking Progress stays. MC-237171 Break marks still there when I mine with sword, and then take out shield MC-241090 Blocks still show cracks when there is no mining block MC-261396 The blocks pushed by pistons remain broken. MC-262129 You Are Able To Break Things Above Yourself 5 Blocks Away From You While Jumping MC-262960 Block breaking animation is broken with chests MC-269026 Breaking animation doesn't disappear after letting go of left click MC-270872 Jumping and mining a block out of range let it in a break state and can be mined MC-274560 The cracks in the block excavation will not disappear MCL-19237 If you retract a spyglass while holding right click to break a block, the block will stay breaking when you release right click.

Attachments

Comments

KingSupernova

Can't confirm in 1.8.3. Are you still experiencing the issue?

KingSupernova

I'm still not experiencing this bug. Are you sure there aren't some other conditions causing it?

bob

Can confirm for 1.8.6
Some other things I found:

  • This bug only happens if you are only just able to reach the block when you start to break it - I found I had to be at least 4 1/3 blocks away from the block I was breaking.

  • If you move back into this range between 4 1/3 blocks and the limit, you can continue to break the block.

  • Once the glitch has happened, holding down left click while moving in and out of range will allow the block to be mined in stages provided the player does not mine any other block in that time. Left click does not have to be held down all the time, just when coming into range

bob

The most pressing exploit of this is mining trees while jumping. When you jump, you are in block-breaking range of what is sometimes the topmost tree block and if you hold left click then occasionally after a handful of jumps you will partly mine the block. I assumed it was server lag when this happened to me but apparently not.

KingSupernova

Confirmed. You must be at the extreme edge of the block-breaking range for this bug to occur. The easiest way to replicate this bug is to place a block 6 blocks above you, and jump at it while holding the mine button. The outstanding mining progress will reset itself after a few seconds if left alone.

Adrian Laschet

Please don't fix. It's not so much a bug, as more a good feature. I've been using it since 1.8 came out, and it really helps with that last block I forgot in the ceiling. Make it a feature, don't call it a bug 🙂

KingSupernova

You have got to be kidding. Just because the bug is slightly useful in some situations doesn't mean it should stay in the game. It's clearly not how mining is supposed to work.

Adrian Laschet

Wow.. That came out way more aggressive than I hope you meant it.
I, and a lot of others, think this bug is a great thing in the game.
It helps with simple mining of that one last block, it resets after a few seconds, and is generally not in the way of anything.
If you don't want to use that "feature", fine. If you do: 1.8 ftw 🙂

PS: If you mine in real life (not that Minecraft should simulate real life), you have the same effect, so please.. I was actually a little disappointed at Minecraft the first time I played it, cause of the lack of that function. It seemed obvious that the block should be half-broken, so I could decide if I wanted to mine it all the way through, or if I thought I would lose it in lava etc. so I could leave it to regenerate.
Like obsidian.. just soo long to mine a block, and if you slip a little with the mouse: Start over again..

KingSupernova

Sorry if that came out rather rude, I was just shocked that someone would want that.

If you were arguing that blocks should stay partly broken when you stop mining them, then I would agree with you. But you are arguing that blocks should stay partly broken when you stop mining them, as long as you are at the exact right distance from them. This makes no sense.

bob

Though I agree that this bug can be very useful when mining that last tree block, ever since non instant mining was implemented in Minecraft, the block had to be focused on the whole time. This bug breaks one of the game's most fundamental rules, no part mining.

Adrian Laschet

I see your points about the exact distance and about the fundamental rules of the game, so I put myself in a more neutral state towards this issue. Thanks for clearing stuff up for me 🙂
Man.. Did I just have a valid conversation with someone on the internet?

bob

I know right

Steven W.d.V.

The description seems to be incorrect in 15w43c.
For me these are the steps to reproduce (unless this is a different ticket, since there are way to many on a seemingly slightly different issue):
-start mining a block
-move your mouse so that it does not focus on any block, but don't release the break button
-move your mouse on the block again and release the button when it is not yet broken
-the cracks should now go away but they actually don't
Maybe the description etc. should be updated?

[Mod] redstonehelper

Done.

Steven W.d.V.

Confirmed for 15w44a and 15w44b

Swekob

Relates to MC-73786, MC-8472, MC-62124, MC-8472 & MC-19676.
Add these related issues to each other too, if they don't already have them. Also, add MC-54587 & MC-70359 to the related issues I just mentioned.

[Mod] redstonehelper

Please be reasonable. This is not related to MC-1. Let me know if you update your list.

Steven W.d.V.

Actually, why doesn't it? Because that's with Zombies and this is with players?

[Mod] redstonehelper

This bug came into existence way after MC-1 was fixed, they are only related in that they affect block cracks. I don't think it's helpful to list any remotely related issue as related.

Steven W.d.V.

@@unknown Ah, of course, I hadn't seen it was fixed.

Swekob

@unknown: Updated the list. You could've just added the related issues that you actually thought was related 🙂

[Mod] redstonehelper

Done.

Steven W.d.V.

Confirmed for 15w45a

Swekob

I found out a simpler way to reproduce (not that it isn't already simple). I added a GIF, breakfreeze.gif.

Update summary and description if you want.

Steven W.d.V.

@@unknown How did you do that?

Swekob

@unknown: I hit in the air and then started mining the block. Should've been more clear.

Steven W.d.V.

@@unknown Ah, I see

Steven W.d.V.

Confirmed for 15w46a

Steven W.d.V.

Confirmed for 15w47a and 15w47c

Steven W.d.V.

Confirmed for 15w51b

Steven W.d.V.

Confirmed for 1.9-pre1 and 1.9-pre2

tryashtar

Still here up through 1.11.

JUE13

Confirmed for 1.12 Pre-Release 5 (video title is inaccurate)

Greg Milson

Confirmed in 17w43b

HalfCreeper

Confirmed for 1.12.2.

For more detailed info and videos see MC-125127

Steven W.d.V.

Confirmed for 1.13-pre5

Kraif

Confirmed for 1.13.1.

by_jove

Confirmed for 1.13.2, 1.14, 1.14.4, and snapshot 19w39a.

However, while click-off-drag-on-drag-off (i.e. this issue) creates cracks that can be furthered by the break-place-break-place action of instantly breakable blocks (i.e. MC-157404), the latter is irreproducible prior to version 1.14.4-pre6. It must be either these are related issues, or MC-157404 is a progression of this bug.

violine1101

Good call. I was not aware that that part of the issue is only present in 1.14.4 and later. Thanks for your time testing that!

I've reopened MC-157404, it will be the ticket about that issue going forward.

Swekob

Affects 1.15-pre1

Doge Memeofthedecade

i wrote about this too, glad im not the only one experiencing this issue

Brian Emerson

Still going in 1.15.2, continually seeing it when I mine piles of sand, and when I bonemeal-farm by holding bonemeal in my main hand and seeds in the off hand, hold the right click and left click when the crop is full. The dirt block below breaks pretty often. I have to compensate by putting obsidian behind the crop and pointing at just the right spot on the obsidian.

3A 'n 2A Kids

reproduced in 1.16-pre6

numeritos

Affects 1.16-rc1

Mike24

This could be intended to allow breaking of hard to reach blocks.

skeleotn smith

more than likely intended, iv had it happen on ps3 edition

 

Avoma

Can confirm in 20w51a.

JohannesM

1.16.5 also

Avoma

Can confirm in 21w03a.

Avoma

Can confirm in 21w05b.

Avoma

Can confirm in 21w06a.

Avoma

Can confirm in 21w07a.

Avoma

Can confirm in 21w11a.

Mask3D_WOLF

Can confirm in 21w13a

Henry Pikachu

Wait, this is in vannila too? i thought it only happened on hypixel

Aleksander

Can confirm in 21w18a

Avoma

@unknown reports are only valid if they can be reproduced in a vanilla environment (without the use of mods, or occur whilst not play on a modified server).

ampolive

Can confirm in 1.17.1.

Fabio Fraissat

this thing is still happening in 1.17, in my case i was afking in a sweeping edge killing chamber (a thing that puts minecarts in front of the player, who keeps hitting it and kills the mobs w/ sweeping 3), but i keep breaking the front dispenser, even hitting 1x per second w/ a sword

shufboyardee

Can confirm in 21w44a.

MisteryGates

Partly intentional. It makes it possible to break blocks that you can just reach when you jump. But I agree the code is not smart enough.

Avoma

Can confirm in 1.18.

Avoma

Can confirm in 1.18.1.

pulpetti

In 22w03a

Avoma

Can confirm in 1.18.2 and 22w15a.

Avoma

Can confirm in 1.19.

TomatoClownfish

Can confirm in 1.19.3.

EyeBlox

This also happens when you break down wood that's higher than the player range, this bug occurs when jumping and breaking

shufboyardee

can confirm in 1.20 Pre-release 1.

SeaOfPixels

This seems to now effect even non-instant mined blocks in 1.20. Break any block anywhere with any tool, and then place a block where you just broke one, and there will be a stage 1 breaking animation. This is super distracting and buggy-looking.

SergZabiyaka

Сan confirm 23w44a.

Viradex

Can confirm in 1.20.6 and 24w21b.

pokechu22

The main cause of this behavior is MC-255057 (continuing to destroy a block only cares if the block that was last targetted is the same as the current block, not if you were still destroying a block).

This was introduced in 14w29a (a 1.8 snapshot), which changed MultiPlayerGameMode.stopDestroyBlock from

public void resetBlockRemoving()
    {
        if (this.isHittingBlock)
        {
            this.netClientHandler.addToSendQueue(new C07PacketPlayerDigging(1, this.currentBlockX, this.currentBlockY, this.currentblockZ, -1));
        }

        this.isHittingBlock = false;
        this.curBlockDamageMP = 0.0F;
        this.mc.theWorld.destroyBlockInWorldPartially(this.mc.thePlayer.getEntityId(), this.currentBlockX, this.currentBlockY, this.currentblockZ, -1);
    }

to

public void resetBlockRemoving()
    {
        if (this.isHittingBlock)
        {
            this.netClientHandler.addToSendQueue(new C07PacketPlayerDigging(C07PacketPlayerDigging.Action.ABORT_DESTROY_BLOCK, this.currentBlock, EnumFacing.DOWN));
            this.isHittingBlock = false;
            this.curBlockDamageMP = 0.0F;
            this.mc.theWorld.sendBlockBreakProgress(this.mc.thePlayer.getEntityId(), this.currentBlock, -1);
        }
    }

i.e. prior to that version, if a block was no longer targetted, then the break progress would be reset to 0, making things mostly behave normally (though it still would fail to tell the server that it started breaking the block, and redstone ore wouldn't begin to glow in this case).

I'm not sure why this change was made. The only relevant issue fixed in 14w29a is MC-676, but I don't think this change was directly part of that fix. So perhaps it was an intentional change, but it wasn't included in the changelog and is implemented fairly awkwardly.

[Mod] redstonehelper

(Unassigned)

Confirmed

Platform

Normal

Player

block-breaking, breaking-animation

Minecraft 1.8-pre3, Minecraft 1.8, Minecraft 1.8.1, Minecraft 1.8.6, Minecraft 1.8.8, ..., 1.20.5 Pre-Release 4, 1.20.6, 24w21b, 1.21, 1.21.4

Retrieved