Open TDWilkinson99 opened 2 years ago
@Spottedleaf raised some potential issues with how this was resolved, so the fix was removed in 1.18.2
Can confirm the horse stats are still broken in Paper 1.19
Is there any way to get this issue escalated?
This seems to be resolved with https://github.com/PaperMC/Paper/pull/8274
Expected behavior
Rideable entities, such as:
Minecarts (minecart_one_cm)
Striders (strider_one_cm)
Pigs (pig_one_cm)
Boats (boat_one_cm)
Horses (horse_one_cm) each have a statistic for tracking how far a player moves while riding them. Most of these don't track this statistic correctly.
Minecarts function correctly.
Striders should accurately track how far a player moves while riding them regardless of velocity or if the strider is being controlled with a fungus on a stick.
Pigs should also accurately track this, regardless of velocity or if the pig is being controlled with a carrot on a stick.
Boats should correctly track this statistic based on if the player is or isn't moving the boat, as well as how fast that player is going.
Horses should also take into account if the player is moving at all, and how fast/slow that player may be moving.
Observed/Actual behavior
While Minecarts work as expected and in parity with Vanilla Minecraft, the rest of the rideable entities do not.
"Works as intended" in all cases means that:
Minecart: Vanilla: Works as intended Paper: Works as intended
Strider: Vanilla: Works as intended Paper: Broken. If you get on the strider while not holding a "fungus on a stick", it will seemingly calculate the correct distance that the strider moves while you're riding it. If you pull out a fungus stick however, the stat will increase by a constant amount, even if that strider changes speed or is not moving because it's stuck.
Pig: Vanilla: Works as intended Paper: Broken. If you get on the pig while not holding a "carrot on a stick", it will seemingly calculate the correct distance that the pig moves while you're riding it. If you pull out a carrot stick however, the stat will increase by a constant amount, even if that pig changes speed or is not moving because it's stuck.
Boat: Vanilla: Works as intended Paper: Broken. The stat increases by a consistent amount (45 p/ tick) no matter what you're doing with the boat, even if you're not moving. The stat does not change based on motion whatsoever, it just constantly increases by 45 every tick.
Horse: Vanilla: Works as intended Paper: Broken. The stat increases by a constant amount (85 p/ tick) even if you're not moving. If you jump with the horse, your stat briefly increases up to 122 p/ tick, before falling back down to 85.
Steps/models to reproduce
I've done my best to explain the issue and what to observe in detail in this video, hope it helps: https://www.youtube.com/watch?v=ZqKOwTL9DbE
This issue requires no prior setup and should be immediately visible once you're viewing the relevant affected statistic.
Plugin and Datapack List
Paper version
Other
I found a Spigot ticket that discusses this issue from 6 months ago and it looks like it's abandoned. https://hub.spigotmc.org/jira/browse/SPIGOT-6475 One comment says they made a PR for it but the ticket is still open as unresolved and this issue still obviously persists.
According to md_5 in the same ticket, this issue goes back to at least Minecraft 1.13.2, I've been able to reproduce it on:
This is not reproduceable in Vanilla Minecraft 1.18.
Here's the scoreboard commands so you don't need to type them out smile :^)