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.

Related issues

Attachments

Comments

migrated
[media][media][media][media][media][media][media][media][media]
Sonicwave

Could be related to MC-84089

migrated

@Sonicwave, Defiantly related.

migrated

is this still an issue in 15w44b?

migrated

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

marcono1234

Confirmed for

  • 16w04a

migrated

still in 16w35a

Avoma

Can confirm in 20w48a. I've attached a video which shows this bug in action.

Avoma

Can confirm in 20w51a.

Avoma

Can confirm in 21w03a.

Avoma

Can confirm in 21w05a.

Avoma

Can confirm in 21w05b.

Avoma

Can confirm in 21w06a.

Avoma

Can confirm in 21w07a.

Avoma

Can confirm in 21w11a.

Avoma

Can confirm in 21w17a.

Avoma

Can confirm in 1.17.

Avoma

Can confirm in 1.17.1.

Avoma

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.

Avoma

Can confirm in 1.18.1.

Avoma

Can confirm in 1.18.2.

Avoma

Can confirm in 1.19.

Avoma

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