mojira.dev
MC-167029

Projectiles take into account player's velocity

The bug

Jumping and throwing/shooting any kind of projectile causes it to spawn with the player's velocity. Expected behavior is to have the projectile's motion only based on the rotation.

How to reproduce

Place a repeating powered command block with the following command:

/execute at @e[type=snowball] run summon armor_stand ~ ~6 ~ {NoGravity:1}

Then, jump three times and throw the snowball at different times in the jump. Throw it when you are going upwards, then when you are at the peak of the jump, and one finally when going down.

Looking at the trajectories (see screenshot) shows the difference in where the snowball ends up.

Linked issues

Attachments

Comments 4

Can confirm in 20w51a.

I fail to see how this is an issue?

With the fact that this has been requested for likely being WAI, I can confirm in 1.20.4 and 24w04a.

The triaging and fixing of MC-137719 and MC-271449 confirm that this is the intended behaviour.

SWinxy

(Unassigned)

Confirmed

(Unassigned)

1.15 Pre-release 4, 20w51a, 1.20.4, 24w04a, 24w14a

Retrieved