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

Related issues

MC-160813 Projectiles from dispensers will not damage entities directly in front of the dispenser MC-172815 Dispenser Shooting arrows MC-173497 Dispenser fired arrows not harming mobs MC-186320 Llama spit doesn't damage the player when the player is standing right in front of the llama's head MC-190727 Dispensers firing arrows do not break armor stands MC-192204 Armor stands cannot be broken by arrows shot from dispensers MC-195270 End crystals don't explode when... MC-198028 arrows pass through mobs MC-208480 발사기 버그 ( Dispenser Bug ) MC-217962 Arrows from mobs can sometimes pass through other mobs MC-259430 If the player is close enough to an entity, fired arrows pass through it without dealing damage MC-262961 The arrow be shot by dispenser will not hurt entities, such as mobs and end crystal MC-264742 Two Skeletons cannot hit each other when they get stuck in a corner MC-268387 Wind Charge passes through player when dispensed MC-268479 Arrow Fired From Dispenser with Fire adjacent to output not always getting ignited MC-268499 The Dispenser's projectile will pierce through mobs if it is too close. MC-271952 Floor Dispenser traps in Chamber Assembly don't work MC-276165 Trial Chamber’s Assembly dispenser/pressure plate trap does not damage the player MC-276595 Ranged mobs cannot hit their target if it is in the same position as them

Attachments

Comments

migrated
[media][media][media][media][media][media][media]
[Mod]Les3awe

This issue duplicates MC-122335.

migrated

Was able to re-create this on Minecraft 1.12.2.

migrated

Confirmed for 1.13.1.

TheGabro

affects 20w17a

TheGabro

affects 20w18a

TheGabro

affects 20w19a

TheGabro

Can i request the ownership of this ticket?

SunCat

@unknown sorry for delay - the ticket is yours now

migrated

Confirmed for 1.16.2.
Simple reproduction steps:

  1. Place an upwards facing dispenser

  2. Put in an arrow, snowball, fire charge, ender peral, 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

This is not only for dispensers, but 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)

You cannot shoot through multiple entities in a row, the first entity whos hitbox that didn't intersect with the arrow's, gets hit.

Compared to the projectile's spawning position (see screenshot named spawn 1.png and spawn 2.png), the entity has 5 pixels on a block of "free space" before it gets hit, if the hitbox is in any of the "free space", the projectile will go through the entity. (see other screenshots)

Avoma

Can confirm in 21w03a.

Avoma

Can confirm in 21w06a.

ampolive

Can confirm in 1.17.1 Release Candidate 1.

Brain81505

Can confirm in 1.19.4

RuukotoPresents

Can confirm in 24w06a.

Viradex

Can confirm in 24w20a.

Kidfury

Can confirm in 24w33a

MrKinau

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]
Kidfury

Can confirm in 1.21.4 and 25w02a

TheGabro

(Unassigned)

1238023

Confirmed

Platform

Important

Collision, Projectiles

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

Retrieved