[PR #769] [MERGED] Clients of a server show its primed TNT, falling blocks, projectiles and crystals #2796

Closed
opened 2026-11-02 15:59:08 +07:00 by bsakaguchi · 0 comments
Owner

📋 Pull Request Information

Original PR: https://github.com/horizon-rust/horizon/pull/769
Author: @ludovic111
Created: 10/17/2026
Status: ✅ Merged
Merged: 10/18/2026
Merged by: @ludovic111

Base: main ← Head: fix/server-projectiles-on-clients


📝 Commits (1)

  • 5e1abf2 Clients of a server show its primed TNT, falling blocks, projectiles and crystals

📊 Changes

7 files changed (+338 additions, -8 deletions)

View changed files

📝 crates/horizon-client/src/game.rs (+1 -0)
📝 crates/horizon-client/src/game/control.rs (+2 -0)
📝 crates/horizon-client/src/game/fireworks.rs (+23 -0)
📝 crates/horizon-client/src/game/remote.rs (+22 -4)
➕ crates/horizon-client/src/game/remote_projectiles.rs (+229 -0)
📝 crates/horizon-client/src/game/trident.rs (+26 -0)
📝 tools/lan_e2e.py (+35 -4)

📄 Description

🤖 Opened by Ludovic's AI agent (Claude), not by Ludovic himself.

Stacked on #766 (then #760 and #759). Retarget to main once they merge.

What

The client half of #766. A Horizon client of a server (LAN, dedicated, or single player's server thread) now places what the server sends:

  • primed TNT, with its fuse;
  • falling blocks, with their block state (the spawn data) and start position;
  • arrows (critical, in the ground), snowballs, eggs, pearls, fireballs, wither skulls (dangerous), wind charges and llama spit;
  • tridents and firework rockets;
  • end crystals, with their beam target and base.

They interpolate like mobs, turn with the move packets, are removed with RemoveEntities, and are cleared on a new connection, respawn or dimension change. status lists them (projectiles).

Why

With the server thread on by default (#731), single player is a client of its own server. Without this, primed TNT, arrows, falling sand and crystals would vanish from the window, as they already do for LAN guests.

How tested

New tools/lan_e2e.py --check projectiles (Mac mini, offscreen):

  • The host summons two primed TNT (one falling), an end crystal without its base, an arrow that lands and a falling sand block.
  • After 80 ticks, the guest's status lists the same entities as the host's: kind, place, crystal base, and a fuse within two ticks (the guest reads a moment later).
  • The sand has landed on both sides.

Result: projectiles: PASS 4 identical. objects (#760) still passes: 13 identical.

cargo fmt --all --check                                          ok
cargo clippy -p horizon-client --all-targets -- -D warnings      ok
tools/lan_e2e.py --check objects --check projectiles             PASS, PASS

Needs Ludovic

Nothing.

🤖 Generated with Claude Code


🔄 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/769 **Author:** [@ludovic111](https://github.com/ludovic111) **Created:** 10/17/2026 **Status:** ✅ Merged **Merged:** 10/18/2026 **Merged by:** [@ludovic111](https://github.com/ludovic111) **Base:** `main` ← **Head:** `fix/server-projectiles-on-clients` --- ### 📝 Commits (1) - [`5e1abf2`](https://github.com/horizon-rust/horizon/commit/5e1abf2b4e07c69311c577e862c8d86578d9dcc6) Clients of a server show its primed TNT, falling blocks, projectiles and crystals ### 📊 Changes **7 files changed** (+338 additions, -8 deletions) <details> <summary>View changed files</summary> 📝 `crates/horizon-client/src/game.rs` (+1 -0) 📝 `crates/horizon-client/src/game/control.rs` (+2 -0) 📝 `crates/horizon-client/src/game/fireworks.rs` (+23 -0) 📝 `crates/horizon-client/src/game/remote.rs` (+22 -4) ➕ `crates/horizon-client/src/game/remote_projectiles.rs` (+229 -0) 📝 `crates/horizon-client/src/game/trident.rs` (+26 -0) 📝 `tools/lan_e2e.py` (+35 -4) </details> ### 📄 Description > 🤖 Opened by Ludovic's AI agent (Claude), not by Ludovic himself. Stacked on #766 (then #760 and #759). Retarget to `main` once they merge. ## What The client half of #766. A Horizon client of a server (LAN, dedicated, or single player's server thread) now places what the server sends: - primed TNT, with its fuse; - falling blocks, with their block state (the spawn data) and start position; - arrows (critical, in the ground), snowballs, eggs, pearls, fireballs, wither skulls (dangerous), wind charges and llama spit; - tridents and firework rockets; - end crystals, with their beam target and base. They interpolate like mobs, turn with the move packets, are removed with `RemoveEntities`, and are cleared on a new connection, respawn or dimension change. `status` lists them (`projectiles`). ## Why With the server thread on by default (#731), single player is a client of its own server. Without this, primed TNT, arrows, falling sand and crystals would vanish from the window, as they already do for LAN guests. ## How tested New `tools/lan_e2e.py --check projectiles` (Mac mini, offscreen): - The host summons two primed TNT (one falling), an end crystal without its base, an arrow that lands and a falling sand block. - After 80 ticks, the guest's `status` lists the same entities as the host's: kind, place, crystal base, and a fuse within two ticks (the guest reads a moment later). - The sand has landed on both sides. **Result: `projectiles: PASS 4 identical`.** `objects` (#760) still passes: 13 identical. ``` cargo fmt --all --check ok cargo clippy -p horizon-client --all-targets -- -D warnings ok tools/lan_e2e.py --check objects --check projectiles PASS, PASS ``` ## Needs Ludovic Nothing. 🤖 Generated with [Claude Code](https://claude.com/claude-code) --- <sub>🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.</sub>
bsakaguchi 2026-11-02 15:59:08 +07:00
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#2796
No description provided.