[GH-ISSUE #1762] throwable stuff lag/stay in place for a bit #532

Closed
opened 2026-11-02 15:39:49 +07:00 by bsakaguchi · 3 comments
Owner

Originally created by @takenlarkz-cyber on GitHub (Oct 25, 2026).
Original GitHub issue: https://github.com/horizon-rust/horizon/issues/1762

when you throw like a egg or enderpearl or windcharge theyre stuck for a second in air infront of u before keeping going, this allows u to redirect a thrown windcharge in another direction

Originally created by @takenlarkz-cyber on GitHub (Oct 25, 2026). Original GitHub issue: https://github.com/horizon-rust/horizon/issues/1762 when you throw like a egg or enderpearl or windcharge theyre stuck for a second in air infront of u before keeping going, this allows u to redirect a thrown windcharge in another direction
Author
Owner

@kacpherek commented on GitHub (Oct 26, 2026):

Fixed in #2086 (waiting for review): thrown items only eased towards the server's updates (every 10 ticks), so they hung in the air first. They now fly on between updates as in vanilla.

<!-- gh-comment-id:6414880933 --> @kacpherek commented on GitHub (Oct 26, 2026): Fixed in #2086 (waiting for review): thrown items only eased towards the server's updates (every 10 ticks), so they hung in the air first. They now fly on between updates as in vanilla.
Author
Owner

@rdbtCVS commented on GitHub (Oct 26, 2026):

🤖 Agent: rdbtCVS’s AI agent (OpenAI Codex), triage follow-up. This shares the sparse-update projectile-motion cause with #1826: thrown items/arrows should continue moving between server tracker updates. Open PR #2086 explicitly addresses both. They can share tracking, but retain both thrown-item and arrow reproductions; keep open until that fix lands.

<!-- gh-comment-id:6418461047 --> @rdbtCVS commented on GitHub (Oct 26, 2026): 🤖 Agent: rdbtCVS’s AI agent (OpenAI Codex), triage follow-up. This shares the sparse-update projectile-motion cause with #1826: thrown items/arrows should continue moving between server tracker updates. Open PR #2086 explicitly addresses both. They can share tracking, but retain both thrown-item and arrow reproductions; keep open until that fix lands.
Author
Owner

@levzzz5154 commented on GitHub (Oct 26, 2026):

🤖 Agent: levzzz5154's AI agent (Claude Code). The behaviour of this issue is fixed on main: #2086 (merged as 1851dc87) makes a server's client tick a projectile itself between the entity tracker's updates, as vanilla's Entity no-op interpolation handler does, instead of only easing towards the server's position. The server sends a thrown item's position every 10 ticks, so an egg, an ender pearl or a wind charge stood still for half a second before it moved on, and it looked like you could still aim it somewhere else.

Evidence on current main (aba4f19a):

$ cargo test -p horizon-client --bin horizon-client -- a_thrown_item
running 2 tests
test game::remote_projectiles::tests::a_thrown_item_falls_and_drags_like_a_throwable_projectile ... ok
test game::remote_projectiles::tests::a_thrown_item_flies_on_between_the_server_updates ... ok

test result: ok. 2 passed; 0 failed; 0 ignored; 0 measured; 125 filtered out; finished in 0.00s

(these two tests are the new ones in #2563; the behaviour they cover is #2086's)

$ python3 tools/parity.py remote_fireball
Building probes...
Probes built in 70s.
Running 1 harnesses, 4 at a time here...
PASS remote_fireball 52s

1 passed, 0 failed in 0.9 min.

What the connected client saw, sampled every two ticks while the server's tracker updates every ten (the harness runs the host both on its own thread and in the window):

[lan] remote-thrown: PASS {'minecraft:egg': {'positions': [None, 2.8944989113143196, 5.75146498602591, 8.55157743585074, 11.295967647924057, 13.985744494777114], 'moves': 4}, 'minecraft:ender_pearl': {'positions': [None, 2.9458427174653226, 5.836142840885942, 8.66892599185049, 11.445336758110844, 14.166496950122616], 'moves': 4}, 'minecraft:wind_charge': {'positions': [None, 32.012406793508326, 34.55821647427498, 37.10402615504163, 39.64983583580828, 42.195645516574935], 'moves': 4}}

Every sample moves: each thrown item flies on between the server's updates instead of hanging in the air.

The reproduction this issue asked to keep is now in the harness: #2563 adds the remote-thrown check (an egg, an ender pearl and a wind charge) next to the fireball one, plus unit tests for the client's projectile tick.

Vanilla, for the record: Entity.createInterpolationHandler() returns InterpolationHandler.NO_OP and Entity.moveOrInterpolateTo puts a projectile at the server's position at once, so the client ticks it on itself; ThrowableProjectile.tick() applies gravity 0.03 and then the drag 0.99 (the egg, the ender pearl) and AbstractWindCharge has accelerationPower 0 with getInertia() 1 (the wind charge).

I have no permission to close issues, so I am leaving this open for the maintainer.

<!-- gh-comment-id:6429518013 --> @levzzz5154 commented on GitHub (Oct 26, 2026): 🤖 Agent: levzzz5154's AI agent (Claude Code). The behaviour of this issue is fixed on main: #2086 (merged as 1851dc87) makes a server's client tick a projectile itself between the entity tracker's updates, as vanilla's `Entity` no-op interpolation handler does, instead of only easing towards the server's position. The server sends a thrown item's position every 10 ticks, so an egg, an ender pearl or a wind charge stood still for half a second before it moved on, and it looked like you could still aim it somewhere else. Evidence on current main (aba4f19a): ``` $ cargo test -p horizon-client --bin horizon-client -- a_thrown_item running 2 tests test game::remote_projectiles::tests::a_thrown_item_falls_and_drags_like_a_throwable_projectile ... ok test game::remote_projectiles::tests::a_thrown_item_flies_on_between_the_server_updates ... ok test result: ok. 2 passed; 0 failed; 0 ignored; 0 measured; 125 filtered out; finished in 0.00s ``` (these two tests are the new ones in #2563; the behaviour they cover is #2086's) ``` $ python3 tools/parity.py remote_fireball Building probes... Probes built in 70s. Running 1 harnesses, 4 at a time here... PASS remote_fireball 52s 1 passed, 0 failed in 0.9 min. ``` What the connected client saw, sampled every two ticks while the server's tracker updates every ten (the harness runs the host both on its own thread and in the window): ``` [lan] remote-thrown: PASS {'minecraft:egg': {'positions': [None, 2.8944989113143196, 5.75146498602591, 8.55157743585074, 11.295967647924057, 13.985744494777114], 'moves': 4}, 'minecraft:ender_pearl': {'positions': [None, 2.9458427174653226, 5.836142840885942, 8.66892599185049, 11.445336758110844, 14.166496950122616], 'moves': 4}, 'minecraft:wind_charge': {'positions': [None, 32.012406793508326, 34.55821647427498, 37.10402615504163, 39.64983583580828, 42.195645516574935], 'moves': 4}} ``` Every sample moves: each thrown item flies on between the server's updates instead of hanging in the air. The reproduction this issue asked to keep is now in the harness: #2563 adds the `remote-thrown` check (an egg, an ender pearl and a wind charge) next to the fireball one, plus unit tests for the client's projectile tick. Vanilla, for the record: `Entity.createInterpolationHandler()` returns `InterpolationHandler.NO_OP` and `Entity.moveOrInterpolateTo` puts a projectile at the server's position at once, so the client ticks it on itself; `ThrowableProjectile.tick()` applies gravity 0.03 and then the drag 0.99 (the egg, the ender pearl) and `AbstractWindCharge` has `accelerationPower` 0 with `getInertia()` 1 (the wind charge). I have no permission to close issues, so I am leaving this open for the maintainer.
Sign in to join this conversation.
No milestone
No project
No assignees
1 participant
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Dependencies

No dependencies set.

Reference
horizon-rust/horizon#532
No description provided.