Open Mitality opened 7 months ago
From what I can tell, this issue was caused by patch 0430. Not sure if there was a specific reason behind this, as it seems the patch is deliberately resetting entity velocity. I'd be happy to fix this if it needs to be undone.
I could implement another method to teleport entities with their velocity via a plugin, but because it differs from vanilla gameplay behavior, I'd suggest to fix it... I mean it's a bug, so...
No idea why that was even changed
No idea why that was even changed
Just as a note why this was added: https://github.com/PaperMC/Paper/pull/4210
Interesting, I do not think this should be changed even though its vanilla behaviour. Removing velocity after a teleport seems more logical.
That's right, but most datapacks modify entity speed by teleporting them slightly forward... This just stops them on paper now
the main reason for the thing resetting of the velocity was to avoid issues with entities having weird movement velocities when teleporting. It would make sense, imho, to retain the velocity when doing relative teleports
Expected behavior
Moving minecart: Using
/execute at <minecart> run tp <minecart> ~10 ~ ~
with a moving minecart should quickly move it 10 blocks east, before it would continue to move like normal (works with normal vanilla Minecraft)Falling creeper: Executing
/execute at <creeper> run tp <creeper> ~ ~ ~
on a creeper that is falling from the sky should leave it falling like nothing happened, because it doesn't modify the creepers position at all (also works fine with vanilla Minecraft)Observed/Actual behavior
Moving minecart: The minecart is quickly moved 10 blocks east, but it then stops, completely losing its momentum.
Falling creeper: The creeper stops mid air, before starting to fall again.
Steps/models to reproduce
/execute at <creeper> run tp <creeper> ~ ~ ~
, and watch it stop mid air, before starting to fall again./execute at <minecart> run tp <minecart> ~10 ~ ~
, and watch the minecart quickly move 10 blocks forward, before it just stopsPlugin and Datapack List
None.
Paper version
[13:36:23 INFO]: This server is running Paper version git-Paper-389 (MC: 1.20.4) (Implementing API version 1.20.4-R0.1-SNAPSHOT) (Git: 848a396)
Other
Velocity seems to be reset for any entity that is teleportet EXCEPT players.