mojira.dev
MC-83684

Thrown projectiles break randomly when player is near mobs

The Bug

Potions (and other non-arrow projectiles) sometimes break randomly. This happens most often when the player is near (but not in contact with) a mob's hitbox. All of the projectiles in the following screenshots instantly broke in front of the player; they are not hitting the mob as the hitboxes aren't touching (and in the last one, the zombie isn't flashing red as it usually would if you hit it).

Steps to Reproduce

  1. Perfectly align yourself looking beside an enderman by using the commands provided below.

    /execute align xyz run tp @s ~0.5 ~ ~0.5 -166 0
    /summon minecraft:enderman ~ ~ ~-3 {NoAI:1b,Silent:1b}
  2. Enable entity hitboxes. (F3 + B).

  3. Obtain some splash potions of healing and throw multiple of them in the direction you're facing.

  4. Take note as to whether or not thrown projectiles are sometimes destroyed randomly when coming into close contact with entities.

Observed Behavior

Thrown projectiles are sometimes destroyed randomly when coming into close contact with entities. Even if the hitboxes of the projectile and the entity don't actually touch one another, the projectiles are still somehow randomly destroyed sometimes.

Expected Behavior

Thrown projectiles would not be sometimes destroyed randomly when coming into close contact with entities.

Linked issues

Attachments

Comments 22

Could be related to MC-84089

@Sonicwave, Defiantly related.

is this still an issue in 15w44b?

[Mod] redstonehelper

Attaching two screenshots of constantly throwing splash potions near mobs in 15w44b.

Confirmed for

  • 16w04a

12 more comments

Can confirm this behavior in 21w41a. Here are some extra details regarding this problem.

The Bug:

Thrown projectiles are sometimes destroyed randomly when coming into close contact with entities.

Steps to Reproduce:

  • Perfectly align yourself looking besides an enderman.

/execute align xyz run tp @s ~0.5 ~ ~0.5
/summon minecraft:enderman ~ ~ ~-3 {NoAI:1b,Silent:1b}
/tp @s ~ ~ ~ -166 0
  • Enable entity hitboxes. (F3 + B).

  • Obtain some splash potions of healing and throw multiple of them in the direction you're facing.

  • Take note as to whether or not thrown projectiles are sometimes destroyed randomly when coming into close contact with entities.

Observed Behavior:

Thrown projectiles are sometimes destroyed randomly when coming into close contact with entities. Even if the hitboxes of the projectile and the entity don't actually touch one another, the projectiles are still somehow randomly destroyed sometimes.

Expected Behavior:

Thrown projectiles would not be sometimes destroyed randomly when coming into close contact with entities.

Can confirm in 1.18.1.

Can confirm in 1.18.2.

Can confirm in 1.19.

Can confirm in 1.19.2.

Sonicwave

(Unassigned)

Confirmed

Gameplay

Low

Hitboxes, Projectiles

entity, hitbox, potion

Minecraft 15w31a, Minecraft 15w31b, Minecraft 15w44b, Minecraft 15w45a, Minecraft 15w46a, ..., 1.19, 1.19.2, 1.19.3, 1.20.1, 1.21.4

Retrieved