mojira.dev
MC-101770

Fireballs and wind charges shot with a projectile will fly in the direction the player is facing

The bug

If a fireball is shot with bow and arrow, it will not rebounce in the direction it gets hit but rather the direction the player is facing.

How to reproduce

  1. Summon a fireball

    /summon fireball ~ ~1 ~ {direction:[0.0,0.0,0.0],ExplosionPower:0}
  2. Stand fair way away from it (~15 blocks)

  3. Shoot an arrow at it, then, before the arrow hits the fireball, quickly look in another direction
    → ❌ The fireball will fly in the direction you looked rather than the one you shot the arrow

Video reference: https://gfycat.com/UnitedDistortedGrunion

Code analysis

Code analysis by @unknown can be found in this comment.

Linked issues

Attachments

Comments 23

Please link to this comment in the description

The following is based on a decompiled version of Minecraft 1.9 using MCP 9.24 beta.

The reason for this is that the method net.minecraft.entity.projectile.EntityFireball.attackEntityFrom(DamageSource, float) uses the look vector of the entity attacking. For indirect damage sources this is the entity shooting the arrow for example. Instead maybe the motion of the damaging entity should be used (method net.minecraft.util.DamageSource.getSourceOfDamage()).

After putting some more research into this behavior i came to assume that this has way more positive than negative behaviors to it and thus i would recommend it being "WAI"

Yet it doesn't seem right, and can be abused.

I'd say this is WAI. It is intended to be this way so that players can defend themselves against Ghast Fireballs.

13 more comments

Can confirm in 1.19.2. Just to clarify, the fireball does not have to be shot with an arrow in order to reproduce this issue. It can be shot with other similar projectiles such as snowballs, eggs, etc...

Can confirm in 22w44a

Can Confirm in 1.19.3

Please refrain from posting comments unless you have relevant information to add. This is not a discussion forum. Please leave feedback on feedback.minecraft.net or in the official feedback discord.

This behavior was originally fixed alongside some other closely related projectile deflection issues. However after additional consideration, we have decided to not go through with it in this release.

This should not be interpreted as confirmation of its status as an intentional feature - nor as a proper bug - and we may still revisit it in the future.

Plagiatus

(Unassigned)

Confirmed

Projectiles

arrow, direction, facing, fireball, player

Minecraft 1.9.4, Minecraft 16w20a, Minecraft 1.10.2, Minecraft 16w43a, Minecraft 1.11, , 1.20.3 Release Candidate 1, 24w06a, 24w20a, 1.21.5, 1.21.7

Retrieved