mojira.dev
MC-125936

When projectiles spawn inside a hitbox, they don't hit the hitbox of the entity they are inside

Trying to shoot entities with a bow and arrow from close range doesn't work. This also affects other projectiles. Withers shoot through blocks from close range as well.

Occurs when the shooter hitbox overlapping with the mob hitbox, or the mob/player is next to the dispenser

applies to skeletons, players, pillagers, illusioners, strays, wither skeletons with a bow and snow golems for sure; presumably also blazes, ghasts and ender dragons (with a dragon fireball)

It happens when the projectile's "hit area" (area where the projectile hits the entity, not equal to its hitbox) intersects with the entity's hitbox, so it happens not only when you touch the shooting spot, but a bit away from it too
(see the spawn points of the arrows from dispenser in screenshots

[media]

and

[media]

)

Simple reproduction steps:

  1. Place an upwards facing dispenser

  2. Put in an arrow, snowball, fire charge, ender pearl, splash potion, lingering potion, or any item that creates a projectile when fired

  3. Place a pressure plate on the dispenser

  4. Let any mob or player step on it

  5. Observe projectile going through the mob or player that stepped on the pressure plate

https://gfycat.com/GregariousLegalBasenji

Linked issues

MC-276165 Trial Chamber’s Assembly dispenser/pressure plate trap does not damage the player Resolved MC-276595 Ranged mobs cannot hit their target if it is in the same position as them Resolved MC-271952 Floor Dispenser traps in Chamber Assembly don't work Resolved MC-268479 Arrow Fired From Dispenser with Fire adjacent to output not always getting ignited Resolved MC-268499 The Dispenser's projectile will pierce through mobs if it is too close. Resolved

Attachments

Comments 19

Was able to re-create this on Minecraft 1.12.2.

Confirmed for 1.13.1.

9 more comments

Can confirm in 24w20a.

Can confirm in 24w33a

This issue additionally causing some projectiles passing through entities when launched directly beneath them and the entity is moving towards the projectile source, as the entity bounding box is already inside the projectile's bounding box.

[media]

Can confirm in 1.21.4 and 25w02a

This effect is more apparent in dispensers when standing on it or facing it with arrows / potions, also shooting arrows at mobs sometimes causes the arrow to deflect as if the mob has a shield.

ilmango

TheGabro

(Unassigned)

Confirmed

Platform

Important

Collision, Projectiles

Minecraft 1.12.2, Minecraft 18w07c, Minecraft 1.13.1, 1.14.4, 1.15.2, ..., 24w45a, 1.21.4, 25w03a, 1.21.5, 25w17a

Retrieved