mojira.dev
MC-232770

Entities receive knockback from incorrect directions when being damaged by firework explosions

Firework explosions are pushing player in random directions instead of pushing him away from the explosion like TNT does. This is because fireworks deal knockback away from their owner and not from themselves like other explosions. You can test this by launching fireworks by hand near a mob.

Steps to Reproduce:

  1. Make sure you're on survival/adventure gamemode.

  2. Get a crossbow and some exploding fireworks.

  3. Shoot fireworks on the ground a few times.

  4. Write down your observations.

Observed Results:

  1. Player is being pushed in random directions.

Expected Results:

  1. Player should be pushed away from the explosion.

Linked issues

Attachments

Comments 4

I can confirm this. Also affects 21w38a.

Can confirm in 1.18.2. This ticket may relate to MC-128624.

Fireworks actually deal knockback away from their owner. You can test this by launching fireworks by hand near a mob. You will notice, that the mob is always knocked way from you. That’s how it also works for other projectiles like snowballs, arrows etc. If a projectile hits its owner, it results knockback in a random direction. (For example this also happens if you shoot yourself with an arrow) Fireworks should not work like this. Since they explode, they should always deal knockback away from themselves like other explosions. Since the people always tried to deal knockback to themselves using fireworks, the knockback was always random.

[media]

This ticket is currently blocked by MC-259769.

Karczoszek

Shugoh

Confirmed

Projectiles

1.17.1, 21w38a, 1.18.2, 1.19, 1.19.2

24w18a

Retrieved