The bug
Sometimes, when you hit a minecart, boat, item frame, painting, or armor stand in Creative mode, the block behind it is broken as if the attack phased through the entity. The said entity still disappears as normal.
How to reproduce
Summon said entities and punch them in Creative (make sure you're not holding a sword). The block behind the entity should occasionally break as well.
Code analysis
Code analysis by @unknown can be found in this comment.
Related issues
is duplicated by
Attachments
Comments


(Apologies if this is a duplicate, the closest issue I could find was MC-58597 which describes a different issue/cause.)

Cannot confirm.
Are you sure your mouse button isn't bouncing ?

Still reproducible in 1.8.1-pre3. It doesn't seem to be caused by bouncing since this does not affect mobs or blocks. However this definitely seems to happen less on my fast PC than on my laptop (attached results).

Re-tested and confirmed when utilizing the CPU

Confirmed for 1.8.1. It is easier to reproduce when moving mouse quickly to another block. I thought this was because of problem of my hardware before seeing this.

Confirmed for 1.8.2-pre7
Place a Minecart on a rail, reopen the world and punch the Minecart and you will see that you destroyed the rail as well.

Affects 15w47c

Please link to this comment in the description
The following is based on a decompiled version of Minecraft 1.9 using MCP 9.24 beta.
The reason for this might be that the method net.minecraft.client.Minecraft.sendClickBlockToController(boolean)
breaks the block and one tick after that the entity is destroyed.

Confirmed for 17w17b

Confirmed for 1.12

Confirmed for 1.13.1.

Confirmed in 1.16-pre5.

Affects 1.16 Release Candidate 1

Affects 20w45a
Can confirm in 20w51a.
Can confirm in 21w03a.
Can confirm in 21w05a.

Can confirm in 21w06a

Note that this seems to only occur if you hold the left mouse button long enough. If you press left click very briefly, this doesn’t seem to happen.

I got this happening when I didn't hold down left click at all. It was instantaneous.
Relates to MC-215426.
Can confirm in 21w07a.
Can confirm in 21w17a.

Affects 1.17
Can confirm in 1.17.1.

Can confirm in 21w40a.
Can confirm in 1.18.
Can confirm in 1.18.2.

confirm in 1.19
Can confirm in 1.19.2.

Affects 1.20 Pre-Release 2.

Can confirm in 1.20.1

Can confirm in 1.21.

Seems for me, that every 4-6th breaking of a painting does break the block behind it.
I don't know why.

can confirm in 1.21.2-pre1

Can confirm in 1.21.4!!
[^[Bug] MC-73162.zip]
[media][media][media][media][media]