The bug
Bows can be used to attack through thin surfaces such as doors, fences and glass panes. This also applies to other projectiles, such as tridents, snowballs, eggs, ender pearls, fireballs, and fishing bobbers.
How to reproduce
Attract a zombie, spider, or angry zombie pigman to a closed door. (These mobs will press right up against the door rather than just standing on the adjacent block.)
Fire a charged arrow at the door. (Back out of right-click range or turn aside at first so that you don't open the door instead.)
The arrow may hit the mob. (It can depend on how the exact distance and power; it is more reliable with doors than fences.)
I would expect the arrow to always hit the door, as melee attacks do.
Related issues
is duplicated by
relates to
Attachments
Comments


Can confirm. Not sure it's a bug though...

The mobs hit box is likely going through the door itself. You should also be able to punch the mobs through the door. other wise it could be a problem with the arrow hit box going through the door itself. Testing now.

This is specific to arrows. Clarifying the description a bit. (There is a case where you can melee-hit mobs through diagonal corners, which is not what I'm reporting here.)

From my point of view this is a very cool feature and not a bug. I can shoot through doors! How awesome is that?

Confirmed for 14w04b.

Confirmed for 14w30c.

Confirmed for 1.8-pre2, same as stephen locke said.

I just tried it and I could only hit the mob when he was standing up against the door. (Like when you can see his hands coming through the door model.) I tested all of the various doors and it was the same. Locke is correct on this... likely the hitbox coming through the door.
As an archer I can say that with the exception of the steel door... if you fire an arrow at it and a person is standing against it on the other side.... they're going to have a bad time. I would say this is working as intended, actually.

This glitch is related to the villagers being killed by a zombie through a door and the likely reason is the hitbox. There is another glitch with fences if you point the cursor at one with a bow and try to fire an arrow, it does the placing a block animation instead of charging the bow.

@Kevin Reid
It doesn't matter whether the mob is shot with an arrow or melee attacked through the door, or if they can be hit through a corner, because it is the same glitch that causes these things to happen, which is the hitboxes going through the door or diagonal corner.

Confirmed for 1.8 and 1.8.1-pre1.

any picture s of 1.9?

Umm 1.9 isn't even being developed yet (the snapshots are for 1.8.1).

Actually, Mojang is developing both 1.8.1 and 1.9:
We're currently working on both 1.8.1 (eta: soonish) & 1.9 (eta: not so soonish). 1.8.1 is bugfixes/optimizations, 1.9 is [stuff and things]

I think this relates to MC-2310 because what is probably happening in both is that the attack IN GENERAL is just going through the door.

This is an intended feature.

Confirmed for 1.9-pre2
@unknown Why?

Still in 1.9-pre3

Still in 1.9-pre4

Still in 1.9.1-pre1

Still in 1.9.1-pre3

There are a number of bug reports about attack radius that are all very similar. MC-2310, MC-18326, MC-50668, MC-63965, MC-71834, and MC-74907 are all about the attack radius of mobs extending through blocks. (Some mobs are more bugged then others, but it’s the same basic problem). There are also a few related issues:
MC-1297 is the same as the above, but for players.
MC-3059 is the same as the above, but for arrows.
Most or all of these reports should be consolidated into one, as they are all caused by the same base issue.

Not completely sure this is a bug as it makes sense you can do that, because there are holes in both.

@Bren Rado
The bug isn't that it can go through the holes, the bug is that it deals damage though the solid block.

@SunCat: See @Bren Rado's latest comment.
@KingSupernova: It doesn't make sense that the arrow can go through the door, but it does make sense for the arrow to go through the holes in the door, because it is being realistic, the same for fences.

@unknown reminder, the door can be retexured, like the spruce door, then it doesn't make sense, the current way of arrows (from a distance) sticking in the door rather then going trough looks more intended to me then making it able to go trough

@FVbico: Would the same be for fences? Because The Papa is a good friend of mine, and he actually likes this feature, he used it in one of his singleplayer worlds.

Would the same be for fences?
as is stands now it doesn't make sense you can shoot trough it when standing next to it, but not when fired from a distance
he actually likes this feature
it has been reported for a long time now, without being resolved, so it can safely be concluded that this is not intended, and no feature
Possible cause:
@unknown:
Arrows have a bounding box that is much bigger than you think and actually sit inside a block.

Still in 1.10

Affects 1.13-pre6

Affects 1.12.2

Confirmed for 1.13.1.

Confirmed for 20w12a
Also affects glass panes

Affects 20w13b

Affects 20w27a
Relates to MC-1297.
Can confirm in 21w03a.
Can confirm in 21w05b.
Can confirm in 21w07a.

Can confirm in 1.19/1.19.1-pre5.

Can confirm in 1.19.3.

Can confirm in 23w06a

In 1.20

In 23w32a

Can confirm in 23w33a

This is an issue that affects most, if not all projectiles. You can reproduce this with arrows, tridents, snowballs, eggs, ender pearls, shulker bullets, small fireballs, or even the fishing rod's bobber (haven't tested llama spit).
As someone noted previously, part of the fired projectile's hitbox sits inside the block it intersects, and thus it intersects the entity that is behind the other side of the block, getting hit. This might also be the cause of MC-2164.
The expected here would be that the projectile hitbox would only collide and stop at the very boundary of the block so it doesn't get any further, this is how most entities behave when colliding with blocks.