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-160813 Projectiles from dispensers will not damage entities directly in front of the dispenser Resolved MC-172815 Dispenser Shooting arrows Resolved MC-173497 Dispenser fired arrows not harming mobs Resolved MC-186320 Llama spit doesn't damage the player when the player is standing right in front of the llama's head Resolved MC-190727 Dispensers firing arrows do not break armor stands Resolved

Attachments

Comments 19

This issue duplicates MC-122335.

Thomas Dorland

Was able to re-create this on Minecraft 1.12.2.

Confirmed for 1.13.1.

affects 20w17a

affects 20w18a

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

Raouf Bouslama

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