[PR #3315] [CLOSED] Add G1–G3 server mod APIs (command.run-quiet, entities, item-use) #4897

Closed
opened 2026-11-03 05:08:44 +07:00 by bsakaguchi · 0 comments
Owner

📋 Pull Request Information

Original PR: https://github.com/horizon-rust/horizon/pull/3315
Author: @ping2A
Created: 10/28/2026
Status: ❌ Closed

Base: main ← Head: omaha/h1-g1-g3


📝 Commits (2)

  • 217da33 Add G1–G3 server mod APIs (command.run-quiet, entities, item-use)
  • 3f3d309 style: rustfmt G1–G3 touchups for CI verify

📊 Changes

9 files changed (+469 additions, -35 deletions)

View changed files

📝 crates/horizon-client/src/game/mod_input.rs (+4 -0)
📝 crates/horizon-client/src/game/mods.rs (+49 -1)
📝 crates/horizon-client/src/game/server_mods.rs (+117 -2)
📝 crates/horizon-mod-sdk/src/lib.rs (+23 -3)
📝 crates/horizon-mod-sdk/wit/horizon.wit (+84 -9)
📝 crates/horizon-mods/src/api_level.rs (+4 -2)
📝 crates/horizon-mods/src/manifest.rs (+23 -9)
📝 crates/horizon-mods/src/runtime.rs (+128 -3)
📝 crates/horizon-mods/src/testing.rs (+37 -6)

📄 Description

Summary

  • G1: server mods can command.run-quiet as the console (≤256 lines / call)
  • G2: extended player / entity snapshot surface for battle-style mods
  • G3: item-use start/stop hooks for server mods
  • Client: Snapshot.entities available under --features mods

Patch developed for Omaha Voxel Edition against Horizon 26.3; artifact also kept as docs/patches/h1-g1-g3.patch in the Omaha tree.

Test plan

  • cargo test / relevant horizon-mods sandbox tests
  • horizon-prepare for 26.3
  • Client join with --features mods; entities present in mod Snapshot
  • Server mod exercises run-quiet + item-use without Mojang asset leakage

Made with Cursor


🔄 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/3315 **Author:** [@ping2A](https://github.com/ping2A) **Created:** 10/28/2026 **Status:** ❌ Closed **Base:** `main` ← **Head:** `omaha/h1-g1-g3` --- ### 📝 Commits (2) - [`217da33`](https://github.com/horizon-rust/horizon/commit/217da33951a36917634ce091d2d0b09988c9953b) Add G1–G3 server mod APIs (command.run-quiet, entities, item-use) - [`3f3d309`](https://github.com/horizon-rust/horizon/commit/3f3d309558185c51186fdc9d51149601dda1843b) style: rustfmt G1–G3 touchups for CI verify ### 📊 Changes **9 files changed** (+469 additions, -35 deletions) <details> <summary>View changed files</summary> 📝 `crates/horizon-client/src/game/mod_input.rs` (+4 -0) 📝 `crates/horizon-client/src/game/mods.rs` (+49 -1) 📝 `crates/horizon-client/src/game/server_mods.rs` (+117 -2) 📝 `crates/horizon-mod-sdk/src/lib.rs` (+23 -3) 📝 `crates/horizon-mod-sdk/wit/horizon.wit` (+84 -9) 📝 `crates/horizon-mods/src/api_level.rs` (+4 -2) 📝 `crates/horizon-mods/src/manifest.rs` (+23 -9) 📝 `crates/horizon-mods/src/runtime.rs` (+128 -3) 📝 `crates/horizon-mods/src/testing.rs` (+37 -6) </details> ### 📄 Description ## Summary - G1: server mods can `command.run-quiet` as the console (≤256 lines / call) - G2: extended player / entity snapshot surface for battle-style mods - G3: item-use start/stop hooks for server mods - Client: `Snapshot.entities` available under `--features mods` Patch developed for [Omaha Voxel Edition](https://github.com/ping2A) against Horizon 26.3; artifact also kept as `docs/patches/h1-g1-g3.patch` in the Omaha tree. ## Test plan - [ ] `cargo test` / relevant horizon-mods sandbox tests - [ ] `horizon-prepare` for 26.3 - [ ] Client join with `--features mods`; entities present in mod Snapshot - [ ] Server mod exercises `run-quiet` + item-use without Mojang asset leakage Made with [Cursor](https://cursor.com) --- <sub>🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.</sub>
bsakaguchi 2026-11-03 05:08:44 +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#4897
No description provided.