[GH-ISSUE #7900] Arrows, tridents and snowballs strike boats and minecarts as in vanilla #7531

Open
opened 2026-11-03 07:09:49 +07:00 by bsakaguchi · 1 comment
Owner

Originally created by @HrafnaValkyrja on GitHub (Nov 2, 2026).
Original GitHub issue: https://github.com/horizon-rust/horizon/issues/7900

Originally assigned to: @HrafnaValkyrja on GitHub.

🤖 Filed by Valkyrie's AI agent (Claude), not by Valkyrie herself.

Arrows, tridents and snowballs fly through boats, tridents and snowballs through minecarts, and a thrown trident bounces twice as hard as vanilla's.

Measured beside the real 26.3 server (dedicated, flat world, no player, ticking chunks, tolerance 1e-6): arrow, snowball and trident flown head-on into a boat, a minecart (and a trident into a pig), at three speeds, with a second hit, and with the target moving toward the shot; Pos and Motion of the projectile and the vehicle over 14 ticks, 1670 values.

  • Vanilla: every projectile stops at the vehicle (VehicleEntity is pickable). An arrow of speed 3 (damage 6) or a trident (damage 8) destroys it, because VehicleEntity.hurtServer adds 10 per point of damage and destroys past 40; two arrows of speed 1.5 (damage 3 each) destroy it on the second. A snowball (0 damage) is spent and leaves it whole. The arrow and snowball are gone; the trident bounces off with 1/100 of its speed.
  • Horizon: boats are no target for any projectile and minecarts only for arrows. The trident and the snowball fly through both, an arrow flies through a boat, and a boat is never hurt (a cart only by an arrow). 465 of the 1670 values differ. An arrow into a minecart already matched.
  • Two more differences showed up once the projectiles hit: the trident's bounce is 1/50 of its speed where vanilla's is 1/100 (and it stays where its step began, where vanilla's stops at the box), also against a pig; and a snowball shot at a boat or minecart that moves toward it (shot speed 0.5, target -0.15) misses it in Horizon while vanilla's is spent at tick 6 (16 values). I believe the snowball one is the box margin: Horizon grows every box a thrown projectile meets by a fixed 0.3, vanilla's ProjectileUtil.computeMargin is (tickCount - 2) / 20 up to 0.3, so a snowball whose path starts inside the 0.3 box enters nothing. Using the age margin for thrown projectiles fixed that cell but moved the pearl_wind_charge parity harness (teleport y -56, vanilla -57), so that part needs its own look.

I have a fix ready for the rest and will open a PR. Related: #4350.

Originally created by @HrafnaValkyrja on GitHub (Nov 2, 2026). Original GitHub issue: https://github.com/horizon-rust/horizon/issues/7900 Originally assigned to: @HrafnaValkyrja on GitHub. > 🤖 Filed by Valkyrie's AI agent (Claude), not by Valkyrie herself. **Arrows, tridents and snowballs fly through boats, tridents and snowballs through minecarts, and a thrown trident bounces twice as hard as vanilla's.** Measured beside the real 26.3 server (dedicated, flat world, no player, ticking chunks, tolerance 1e-6): arrow, snowball and trident flown head-on into a boat, a minecart (and a trident into a pig), at three speeds, with a second hit, and with the target moving toward the shot; `Pos` and `Motion` of the projectile and the vehicle over 14 ticks, 1670 values. - Vanilla: every projectile stops at the vehicle (`VehicleEntity` is pickable). An arrow of speed 3 (damage 6) or a trident (damage 8) destroys it, because `VehicleEntity.hurtServer` adds 10 per point of damage and destroys past 40; two arrows of speed 1.5 (damage 3 each) destroy it on the second. A snowball (0 damage) is spent and leaves it whole. The arrow and snowball are gone; the trident bounces off with 1/100 of its speed. - Horizon: boats are no target for any projectile and minecarts only for arrows. The trident and the snowball fly through both, an arrow flies through a boat, and a boat is never hurt (a cart only by an arrow). 465 of the 1670 values differ. An arrow into a minecart already matched. - Two more differences showed up once the projectiles hit: the trident's bounce is 1/50 of its speed where vanilla's is 1/100 (and it stays where its step began, where vanilla's stops at the box), also against a pig; and a snowball shot at a boat or minecart that moves toward it (shot speed 0.5, target -0.15) misses it in Horizon while vanilla's is spent at tick 6 (16 values). I believe the snowball one is the box margin: Horizon grows every box a thrown projectile meets by a fixed 0.3, vanilla's `ProjectileUtil.computeMargin` is `(tickCount - 2) / 20` up to 0.3, so a snowball whose path starts inside the 0.3 box enters nothing. Using the age margin for thrown projectiles fixed that cell but moved the `pearl_wind_charge` parity harness (teleport y -56, vanilla -57), so that part needs its own look. I have a fix ready for the rest and will open a PR. Related: #4350.
Author
Owner

@HrafnaValkyrja commented on GitHub (Nov 2, 2026):

🤖 Agent: /claim

<!-- gh-comment-id:6591613857 --> @HrafnaValkyrja commented on GitHub (Nov 2, 2026): 🤖 Agent: /claim
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#7531
No description provided.