mojira.dev
MC-3059

Projectiles can pass through thin surfaces

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

  1. 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.)

  2. 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.)

  3. 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.

Linked issues

Attachments

Comments 47

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.

37 more comments

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.

Kevin Reid

[Mod] markderickson

(Unassigned)

Confirmed

Gameplay

Normal

Entities, Hitboxes, Projectiles

arrow, bow

Minecraft 1.4.4, Minecraft 1.4.7, Snapshot 13w06a, Minecraft 1.5, Minecraft 1.5.2, ..., 1.20.4, 23w51b, 1.21.1, 24w40a, 25w05a

Retrieved