[PR #6318] Fix/piston projectile push and projectiles physics #6791

Open
opened 2026-11-03 06:26:41 +07:00 by bsakaguchi · 0 comments
Owner

📋 Pull Request Information

Original PR: https://github.com/horizon-rust/horizon/pull/6318
Author: @iwaneth
Created: 11/1/2026
Status: 🔄 Open

Base: main ← Head: fix/piston-projectile-push


📝 Commits (8)

  • e011920 Push projectiles with moving pistons
  • f527f4a Fix tridents remaining suspended after block removal
  • 64f5663 Smooth projectile flight orientation
  • d83f9d0 Fix piston projectile flight and slime bounce
  • b4ac2ce Merge origin/main into fix/piston-projectile-push
  • 6f8a26a Merge branch 'main' into fix/piston-projectile-push
  • 274ba45 Fix projectile merge CI failures
  • 41a8858 Merge latest origin/main into piston projectile fix

📊 Changes

13 files changed (+541 additions, -111 deletions)

View changed files

📝 crates/horizon-client/src/arrows.rs (+3 -3)
📝 crates/horizon-client/src/end_gateway.rs (+3 -0)
📝 crates/horizon-client/src/game/creatures.rs (+9 -2)
📝 crates/horizon-client/src/game/lan.rs (+3 -0)
📝 crates/horizon-client/src/game/lan_entities.rs (+1 -0)
📝 crates/horizon-client/src/game/piston_push.rs (+30 -52)
📝 crates/horizon-client/src/game/remote.rs (+13 -10)
📝 crates/horizon-client/src/game/remote_projectiles.rs (+119 -11)
📝 crates/horizon-client/src/game/trident.rs (+227 -25)
📝 crates/horizon-client/src/mobs/living.rs (+18 -0)
📝 crates/horizon-client/src/mobs/shulker.rs (+3 -0)
📝 crates/horizon-client/src/projectiles.rs (+82 -7)
📝 tools/lan_e2e.py (+30 -1)

📄 Description

What and why

Fix projectile behavior around moving pistons: push projectiles in sync with the server, release embedded arrows and tridents when pistons or slime blocks move them, and smooth projectile flight orientation. Add regression coverage for these cases and update the LAN end-to-end tooling.

Fixes #<issue number, if applicable>

Kind

  • parity: Horizon now does what vanilla 26.3 does
  • bug: a crash or a breakage
  • perf: faster, or less memory
  • feature: something new for players (listed under New in the release notes)
  • extra: Horizon-only, off by default
  • tooling: tools, CI, tests, harnesses
  • docs

Other projects' code

none

Self-check

[
pr_ready (tools/pr_ready.py --quick on DESKTOP-5520, against origin/main at d55e66d65, 7 min 13 s)

Check Result
Scope ⚠ 14 files, +526 −48; 574 lines of code: over 500, split it if it can ship in parts
Cargo.lock ✅ unchanged
Public tree ✅
Python tests ✅ 495 passed (29 s)
rustfmt ✅ (8 s)
clippy ✅ (1 s)
tests: horizon-client ✅ 1352 passed (6 min 33 s)
doc tests ✅ 0 passed (1 s)
content root tests ➖ content root untouched
tokens.css up to date ➖ theme untouched
launcher rustfmt ➖ launcher untouched
launcher clippy ➖ launcher untouched
launcher tests ➖ launcher untouched
Parity ➖ 350 affected, to run in CI (--quick): arrow, attribute_updates, audio_attributes, auto_jump, bamboo, basic_feature, biome_chunk, biome_generation, biome_placement, biome_source_codec, biome_source, biome_temperature and 338 more
Label player-facing: feature if players get something new, no label for a fix (release-now if urgent)
]

Recordings

Before: [
https://github.com/user-attachments/assets/4caf4c66-159e-4ba1-b41c-cc5539c08698
Screenshot_20261101_010127
]
After: [
https://github.com/user-attachments/assets/80a2f767-2154-456b-a7e4-a845136f1e8f
Screenshot_20261101_160558
]

created by iwaneth, https://github.com/iwaneth


🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.

## 📋 Pull Request Information **Original PR:** https://github.com/horizon-rust/horizon/pull/6318 **Author:** [@iwaneth](https://github.com/iwaneth) **Created:** 11/1/2026 **Status:** 🔄 Open **Base:** `main` ← **Head:** `fix/piston-projectile-push` --- ### 📝 Commits (8) - [`e011920`](https://github.com/horizon-rust/horizon/commit/e011920b66fe72e67f5cee5a2af598bda1c80db2) Push projectiles with moving pistons - [`f527f4a`](https://github.com/horizon-rust/horizon/commit/f527f4af5d5dacc6e5e09426b5e1b8b61c751ca5) Fix tridents remaining suspended after block removal - [`64f5663`](https://github.com/horizon-rust/horizon/commit/64f566311b0f177979f208f482af398cb003e52d) Smooth projectile flight orientation - [`d83f9d0`](https://github.com/horizon-rust/horizon/commit/d83f9d05040e5e4d9285a18fe1086d603f01755a) Fix piston projectile flight and slime bounce - [`b4ac2ce`](https://github.com/horizon-rust/horizon/commit/b4ac2ce73167dab71dafa1c6074a1f58fd5106a8) Merge origin/main into fix/piston-projectile-push - [`6f8a26a`](https://github.com/horizon-rust/horizon/commit/6f8a26a509ce40fe664829bd9ce8c6ec4e39e0f6) Merge branch 'main' into fix/piston-projectile-push - [`274ba45`](https://github.com/horizon-rust/horizon/commit/274ba45708091050794555508a664a4a81421107) Fix projectile merge CI failures - [`41a8858`](https://github.com/horizon-rust/horizon/commit/41a885884c1e62c0fef7c311803881031a8ce90b) Merge latest origin/main into piston projectile fix ### 📊 Changes **13 files changed** (+541 additions, -111 deletions) <details> <summary>View changed files</summary> 📝 `crates/horizon-client/src/arrows.rs` (+3 -3) 📝 `crates/horizon-client/src/end_gateway.rs` (+3 -0) 📝 `crates/horizon-client/src/game/creatures.rs` (+9 -2) 📝 `crates/horizon-client/src/game/lan.rs` (+3 -0) 📝 `crates/horizon-client/src/game/lan_entities.rs` (+1 -0) 📝 `crates/horizon-client/src/game/piston_push.rs` (+30 -52) 📝 `crates/horizon-client/src/game/remote.rs` (+13 -10) 📝 `crates/horizon-client/src/game/remote_projectiles.rs` (+119 -11) 📝 `crates/horizon-client/src/game/trident.rs` (+227 -25) 📝 `crates/horizon-client/src/mobs/living.rs` (+18 -0) 📝 `crates/horizon-client/src/mobs/shulker.rs` (+3 -0) 📝 `crates/horizon-client/src/projectiles.rs` (+82 -7) 📝 `tools/lan_e2e.py` (+30 -1) </details> ### 📄 Description ## What and why Fix projectile behavior around moving pistons: push projectiles in sync with the server, release embedded arrows and tridents when pistons or slime blocks move them, and smooth projectile flight orientation. Add regression coverage for these cases and update the LAN end-to-end tooling. Fixes #<issue number, if applicable> ## Kind - [x] parity: Horizon now does what vanilla 26.3 does - [x] bug: a crash or a breakage - [ ] perf: faster, or less memory - [ ] feature: something new for players (listed under New in the release notes) - [ ] extra: Horizon-only, off by default - [ ] tooling: tools, CI, tests, harnesses - [ ] docs ## Other projects' code none ## Self-check [ **pr_ready** (`tools/pr_ready.py --quick` on DESKTOP-5520, against origin/main at d55e66d65, 7 min 13 s) | Check | Result | | --- | --- | | Scope | ⚠ 14 files, +526 −48; 574 lines of code: over 500, split it if it can ship in parts | | Cargo.lock | ✅ unchanged | | Public tree | ✅ | | Python tests | ✅ 495 passed (29 s) | | rustfmt | ✅ (8 s) | | clippy | ✅ (1 s) | | tests: horizon-client | ✅ 1352 passed (6 min 33 s) | | doc tests | ✅ 0 passed (1 s) | | content root tests | ➖ content root untouched | | tokens.css up to date | ➖ theme untouched | | launcher rustfmt | ➖ launcher untouched | | launcher clippy | ➖ launcher untouched | | launcher tests | ➖ launcher untouched | | Parity | ➖ 350 affected, to run in CI (--quick): arrow, attribute_updates, audio_attributes, auto_jump, bamboo, basic_feature, biome_chunk, biome_generation, biome_placement, biome_source_codec, biome_source, biome_temperature and 338 more | | Label | player-facing: `feature` if players get something new, no label for a fix (`release-now` if urgent) | ] ## Recordings Before: [ https://github.com/user-attachments/assets/4caf4c66-159e-4ba1-b41c-cc5539c08698 <img width="1920" height="1080" alt="Screenshot_20261101_010127" src="https://github.com/user-attachments/assets/539786b9-572d-457e-9c8b-10941aacd992" /> ] After: [ https://github.com/user-attachments/assets/80a2f767-2154-456b-a7e4-a845136f1e8f <img width="1920" height="1080" alt="Screenshot_20261101_160558" src="https://github.com/user-attachments/assets/1389d9bf-c6e7-4653-a327-1177a1c65590" /> ] created by iwaneth, https://github.com/iwaneth --- <sub>🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.</sub>
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#6791
No description provided.