[PR #901] [MERGED] Server: commands on other players, attributes, respawn, crouch, server-thread agent commands (combined #845–#892) #2896

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

📋 Pull Request Information

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

Base: main ← Head: integ/sh7


📝 Commits (10+)

  • 54bae61 feat(server): commands act on other players (names, UUIDs, @a/@p/@r/@s)
  • bfa622b Server: send entity attributes to clients
  • dd9f8a9 Server: send a player standing up again, and draw other players' crouch
  • 20d9c4c Pair a respawned player again for the other players
  • 60bc15a Run the agent's commands, give and time on the server thread
  • 164f1df Feed a remote client's chat lines to the agent's event log
  • be161f1 Report the world's tick time in flight summaries
  • f5d81e8 Merge remote-tracking branch 'origin/feat/server-player-targets' into integ/sh7
  • eed2d8d Merge remote-tracking branch 'origin/feat/server-entity-attributes' into integ/sh7
  • 52298d9 Merge remote-tracking branch 'origin/fix/server-crouch-flags' into integ/sh7

📊 Changes

39 files changed (+2040 additions, -319 deletions)

View changed files

📝 crates/horizon-client/examples/lan_flat.rs (+1 -0)
📝 crates/horizon-client/src/bin/horizon-ctl/commands.rs (+1 -1)
📝 crates/horizon-client/src/effects.rs (+72 -67)
📝 crates/horizon-client/src/entity_nbt.rs (+5 -2)
📝 crates/horizon-client/src/game.rs (+5 -0)
📝 crates/horizon-client/src/game/advancements.rs (+21 -11)
📝 crates/horizon-client/src/game/agent.rs (+7 -0)
📝 crates/horizon-client/src/game/commands.rs (+187 -92)
📝 crates/horizon-client/src/game/commands/data.rs (+5 -0)
📝 crates/horizon-client/src/game/commands/effects.rs (+20 -15)
📝 crates/horizon-client/src/game/commands/execute.rs (+8 -3)
➕ crates/horizon-client/src/game/commands/players.rs (+210 -0)
📝 crates/horizon-client/src/game/control.rs (+32 -2)
📝 crates/horizon-client/src/game/dedicated.rs (+1 -0)
📝 crates/horizon-client/src/game/events.rs (+18 -3)
📝 crates/horizon-client/src/game/integrated.rs (+54 -0)
📝 crates/horizon-client/src/game/lan.rs (+19 -1)
📝 crates/horizon-client/src/game/lan_actions.rs (+273 -64)
➕ crates/horizon-client/src/game/lan_attributes.rs (+274 -0)
📝 crates/horizon-client/src/game/lan_entities.rs (+2 -0)

...and 19 more files

📄 Description

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

Combines server-host-7's seven PRs onto current main. Merging this marks each of them merged:
#845 (commands that act on other players) → #857 (attribute sync for players and mobs, with its harness) → #863 (a player standing up again is sent: crouch flag and pose) → #876 (a respawned player is removed and re-added for the others) → #879 (on the server thread, the agent's command, give and time run on the server) → #880 (wait-for chat on any connected client) → #892 (fly benchmarks report the world's tick time).

Conflicts resolved here

  • #863 × #857 in lan/entity.rs send_dirty: #857's if dirty block for entity data with #863's reset of shared flags and pose to their defaults inside it, then #857's attribute sync. Both new tests kept; all 11 lan::entity tests pass.
  • #880 × #876 in tools/lan_e2e.py: CHECKS and CHECK_FNS hold both respawn and chat (AST check: no function lost from either branch).
  • After merging main: #878 made Resources::items a method, so lan_attributes.rs calls items().

Checks

  • Before main's latest merges: fmt, workspace clippy -D warnings, horizon-client tests (879 + integration), 7/7 server harnesses (lan, dedicated_server, server_entities, server_dimension_players, server_ops_feedback, command_exec, command_parse), and lan_e2e respawn, chat, trials, commands, pvp, hazards and self, all PASS both in-frame and with --server-thread.
  • After merging main (#878, #872–#874, #888, #889, #895, #752): clippy clean, horizon-client tests (880 + integration) pass, lan and dedicated_server PASS, lan_e2e respawn, chat and commands PASS with --server-thread.

Left: #891 (server-thread light into the edge chunk, server-host-8) and #890 (block ticks without a local player, server-ticks-1).

🤖 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/901 **Author:** [@ludovic111](https://github.com/ludovic111) **Created:** 10/18/2026 **Status:** ✅ Merged **Merged:** 10/18/2026 **Merged by:** [@ludovic111](https://github.com/ludovic111) **Base:** `main` ← **Head:** `integ/sh7` --- ### 📝 Commits (10+) - [`54bae61`](https://github.com/horizon-rust/horizon/commit/54bae6131bab839a702ca3fce0e66dbe6700f2ed) feat(server): commands act on other players (names, UUIDs, @a/@p/@r/@s) - [`bfa622b`](https://github.com/horizon-rust/horizon/commit/bfa622bbdec711618b8516a1d7dbe164265b471a) Server: send entity attributes to clients - [`dd9f8a9`](https://github.com/horizon-rust/horizon/commit/dd9f8a908804b0fbd9c20f8dd7550476a71f245f) Server: send a player standing up again, and draw other players' crouch - [`20d9c4c`](https://github.com/horizon-rust/horizon/commit/20d9c4c9844e5ab618e650c6d16a46958bafe46f) Pair a respawned player again for the other players - [`60bc15a`](https://github.com/horizon-rust/horizon/commit/60bc15a63ede1a7ca624ea8921eb6d32fc37463e) Run the agent's commands, give and time on the server thread - [`164f1df`](https://github.com/horizon-rust/horizon/commit/164f1dfd524deaa35cd9698bcf8adde60dd95f1c) Feed a remote client's chat lines to the agent's event log - [`be161f1`](https://github.com/horizon-rust/horizon/commit/be161f100b5eeb565d56db3d1aab7b43095b0bcd) Report the world's tick time in flight summaries - [`f5d81e8`](https://github.com/horizon-rust/horizon/commit/f5d81e883ce6eda4bd931e3620b16af50d5cf527) Merge remote-tracking branch 'origin/feat/server-player-targets' into integ/sh7 - [`eed2d8d`](https://github.com/horizon-rust/horizon/commit/eed2d8ddff9a3c6e080b2c77d8799d44171ee304) Merge remote-tracking branch 'origin/feat/server-entity-attributes' into integ/sh7 - [`52298d9`](https://github.com/horizon-rust/horizon/commit/52298d9a379f83aa770cb82975090df0c3844c42) Merge remote-tracking branch 'origin/fix/server-crouch-flags' into integ/sh7 ### 📊 Changes **39 files changed** (+2040 additions, -319 deletions) <details> <summary>View changed files</summary> 📝 `crates/horizon-client/examples/lan_flat.rs` (+1 -0) 📝 `crates/horizon-client/src/bin/horizon-ctl/commands.rs` (+1 -1) 📝 `crates/horizon-client/src/effects.rs` (+72 -67) 📝 `crates/horizon-client/src/entity_nbt.rs` (+5 -2) 📝 `crates/horizon-client/src/game.rs` (+5 -0) 📝 `crates/horizon-client/src/game/advancements.rs` (+21 -11) 📝 `crates/horizon-client/src/game/agent.rs` (+7 -0) 📝 `crates/horizon-client/src/game/commands.rs` (+187 -92) 📝 `crates/horizon-client/src/game/commands/data.rs` (+5 -0) 📝 `crates/horizon-client/src/game/commands/effects.rs` (+20 -15) 📝 `crates/horizon-client/src/game/commands/execute.rs` (+8 -3) ➕ `crates/horizon-client/src/game/commands/players.rs` (+210 -0) 📝 `crates/horizon-client/src/game/control.rs` (+32 -2) 📝 `crates/horizon-client/src/game/dedicated.rs` (+1 -0) 📝 `crates/horizon-client/src/game/events.rs` (+18 -3) 📝 `crates/horizon-client/src/game/integrated.rs` (+54 -0) 📝 `crates/horizon-client/src/game/lan.rs` (+19 -1) 📝 `crates/horizon-client/src/game/lan_actions.rs` (+273 -64) ➕ `crates/horizon-client/src/game/lan_attributes.rs` (+274 -0) 📝 `crates/horizon-client/src/game/lan_entities.rs` (+2 -0) _...and 19 more files_ </details> ### 📄 Description > 🤖 Opened by Ludovic's AI agent (Claude), not by Ludovic himself. Combines server-host-7's seven PRs onto current main. Merging this marks each of them merged: #845 (commands that act on other players) → #857 (attribute sync for players and mobs, with its harness) → #863 (a player standing up again is sent: crouch flag and pose) → #876 (a respawned player is removed and re-added for the others) → #879 (on the server thread, the agent's `command`, `give` and `time` run on the server) → #880 (`wait-for chat` on any connected client) → #892 (`fly` benchmarks report the world's tick time). **Conflicts resolved here** - #863 × #857 in `lan/entity.rs` `send_dirty`: #857's `if dirty` block for entity data with #863's reset of shared flags and pose to their defaults inside it, then #857's attribute sync. Both new tests kept; all 11 `lan::entity` tests pass. - #880 × #876 in `tools/lan_e2e.py`: `CHECKS` and `CHECK_FNS` hold both `respawn` and `chat` (AST check: no function lost from either branch). - After merging main: #878 made `Resources::items` a method, so `lan_attributes.rs` calls `items()`. **Checks** - Before main's latest merges: fmt, workspace clippy `-D warnings`, horizon-client tests (879 + integration), 7/7 server harnesses (lan, dedicated_server, server_entities, server_dimension_players, server_ops_feedback, command_exec, command_parse), and lan_e2e respawn, chat, trials, commands, pvp, hazards and self, all PASS both in-frame and with `--server-thread`. - After merging main (#878, #872–#874, #888, #889, #895, #752): clippy clean, horizon-client tests (880 + integration) pass, lan and dedicated_server PASS, lan_e2e respawn, chat and commands PASS with `--server-thread`. Left: #891 (server-thread light into the edge chunk, server-host-8) and #890 (block ticks without a local player, server-ticks-1). 🤖 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:56 +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#2896
No description provided.