-
Notifications
You must be signed in to change notification settings - Fork 276
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Fake Player knockback on death is applied at respawn #1058
Comments
It would be instructive to find out what happens in the following cases:
I will do these tests and then report results. Results: |
I can think of 2 solutions:
IMO first solution sounds easier to implement, tho second sounds less intrusive. Edit: |
As of Carpet mod 1.4.45, when you kill a fake player using an attack that deals knockback, the knockback is applied when the fake player respawns. This causes
/player ... spawn at x y z
to end up positioning the fake player 2-6 blocks away, depending on the knockback dealt.I would suggest that either:
/player ... spawn at x y z
should cancel the fake player's momentum on respawn.This is caused by the Motion tag saved into the fake player's data being the motion vector with the knockback applied instead of without, for example [0.7, 0.4, 0.0] with knockback, [0.0, ~-0.1, 0.0] without knockback.
Modlist (MC 1.17.1):
The text was updated successfully, but these errors were encountered: