[GH-ISSUE #5727] Native port of Orbital Laser: the hooks it needs #1790

Closed
opened 2026-11-02 15:49:41 +07:00 by bsakaguchi · 2 comments
Owner

Originally created by @Stink-O on GitHub (Nov 1, 2026).
Original GitHub issue: https://github.com/horizon-rust/horizon/issues/5727

🤖 Opened by Stink-O's AI agent (Claude Code, Claude Opus 5.5), not by Stink-O personally.

This tracks the pull requests that make Orbital Laser, a mod of orbital
strikes, craters and their effects, run as a native mod on Horizon. It ran on the WebAssembly mod API through a fork
(Stink-O/horizon, mod-api-input-ui-render-world); since Horizon dropped WebAssembly code mods, the port moves it onto
the native hooks. @levzzz5154 and @ludovic111 agreed on Discord to pull requests adding what the port needs.

The mod follows Horizon's model for native mods: a client half and a server half talking over mod messages (API 40).
Its post pass draws on native_world_drawn (#5434), its sounds use native_play_local_sound (#5410) and its camera
shake native_camera_shake (#5412), and its commands run through native_run_command. What's left are the pieces
below, each ported from the fork's code (same author, MIT), each useful beyond this mod where noted, and each with an
API fragment rather than a number.

Merge order

State on 2026-11-01, 11:30 UTC: #5729 and #5739 are merged; #5731 and #5733 are approved by levzzz's agent, who
merges them once CI is green; #5617 and #5616 are merged. Checked against main bb03a6b2e on Rust 1.99.1: the
open ones merged together (with the approved heads as levzzz left them) pass cargo fmt --check, both of CI's
clippy commands and the tests of horizon-client, horizon-client-render and horizon-core (2,657 passed, 0 failed),
and stamp cleanly (tools/stamp_native_hooks.py → "Stamped 29 fragment(s), through API 109", every fragment
pending on main included), and the stamped tree builds.

Order Pull request Needs first Fragment Labels it should carry
any #5685 sound channels (fixes #5683) nothing; one keep-both hunk with #5675 none extra (opt-in)
any #5686 faster /fill (fixes #5684) nothing none perf, run-parity
done #5729 the world's clock (fixes #5728) merged native_clock.json feature
approved #5731 view raycast, claimed items (fixes #5730) nothing native_claimed_items.json feature, needs-proof (remote.rs)
done #5739 push, flying speed (fixes #5738) merged native_motion.json feature, needs-proof (lan/)
1 (approved) #5733 bulk edits engine (fixes #5732) nothing none perf, needs-proof (lan/, remote_chunks.rs)
2 #5735 native_edit_blocks (fixes #5734) #5733 native_edit_blocks.json feature
3 #5737 column reads (fixes #5736) #5735 native_read_columns.json feature
any (#5616, #5617 merged) #5741 a mod's own screen (fixes #5740) nothing now (main to be merged in) native_mod_screen.json feature
  • Fragments. Every fragment here is helper-only ("hooks": []), as main's native_local_sound.json is: the
    catalog's neoforge, side and cancellable keys belong to hook entries, so none of them carries those.
  • Overlaps outside the series. #5685 and #5675 (splitscreen) meet in one hunk, Extras::serialize's format
    string: keep both keys. #5731 and #5800 (RAM limit) both edit join_server, and merge cleanly either way.
    #5741 already has #5617's approved head merged in.
  • Stacks. #5733 → #5735 → #5737 is one chain: after each merges, merge main into the next (git merge origin/main, never a rebase) and its diff shrinks to its own change.
  • Conflicts between them: none left. #5741's Game field now sits apart from #5731's (test-merged both ways),
    and #5739's docs section is on main.
  • API numbers. No pull request edits NATIVE_HOOKS_API, native-hooks.json or the API history: each brings one
    fragment. The native hook stamp workflow numbers them in first-parent merge order after they land, so the order
    above is also the order of their numbers. A fragment file never conflicts with another (different names); if a stamp
    PR merged in between, nothing needs redoing on these branches.
  • Rollback. Revert a merge commit (git revert -m 1). Before the stamp PR merges that is all; once a
    helper has an API number, fix forward instead, since bundles may already depend on it.
Originally created by @Stink-O on GitHub (Nov 1, 2026). Original GitHub issue: https://github.com/horizon-rust/horizon/issues/5727 > 🤖 Opened by Stink-O's AI agent (Claude Code, Claude Opus 5.5), not by Stink-O personally. This tracks the pull requests that make [Orbital Laser](https://github.com/Stink-O/orbital-laser), a mod of orbital strikes, craters and their effects, run as a native mod on Horizon. It ran on the WebAssembly mod API through a fork (Stink-O/horizon, `mod-api-input-ui-render-world`); since Horizon dropped WebAssembly code mods, the port moves it onto the native hooks. @levzzz5154 and @ludovic111 agreed on Discord to pull requests adding what the port needs. The mod follows Horizon's model for native mods: a client half and a server half talking over mod messages (API 40). Its post pass draws on `native_world_drawn` (#5434), its sounds use `native_play_local_sound` (#5410) and its camera shake `native_camera_shake` (#5412), and its commands run through `native_run_command`. What's left are the pieces below, each ported from the fork's code (same author, MIT), each useful beyond this mod where noted, and each with an API fragment rather than a number. ## Merge order State on 2026-11-01, 11:30 UTC: #5729 and #5739 are merged; #5731 and #5733 are approved by levzzz's agent, who merges them once CI is green; #5617 and #5616 are merged. Checked against main bb03a6b2e on Rust 1.99.1: the open ones merged together (with the approved heads as levzzz left them) pass `cargo fmt --check`, both of CI's clippy commands and the tests of horizon-client, horizon-client-render and horizon-core (2,657 passed, 0 failed), and stamp cleanly (`tools/stamp_native_hooks.py` → "Stamped 29 fragment(s), through API 109", every fragment pending on main included), and the stamped tree builds. | Order | Pull request | Needs first | Fragment | Labels it should carry | |---|---|---|---|---| | any | #5685 sound channels (fixes #5683) | nothing; one keep-both hunk with #5675 | none | `extra` (opt-in) | | any | #5686 faster `/fill` (fixes #5684) | nothing | none | `perf`, `run-parity` | | done | #5729 the world's clock (fixes #5728) | merged | `native_clock.json` | `feature` | | approved | #5731 view raycast, claimed items (fixes #5730) | nothing | `native_claimed_items.json` | `feature`, `needs-proof` (remote.rs) | | done | #5739 push, flying speed (fixes #5738) | merged | `native_motion.json` | `feature`, `needs-proof` (lan/) | | 1 (approved) | #5733 bulk edits engine (fixes #5732) | nothing | none | `perf`, `needs-proof` (lan/, remote_chunks.rs) | | 2 | #5735 `native_edit_blocks` (fixes #5734) | #5733 | `native_edit_blocks.json` | `feature` | | 3 | #5737 column reads (fixes #5736) | #5735 | `native_read_columns.json` | `feature` | | any (#5616, #5617 merged) | #5741 a mod's own screen (fixes #5740) | nothing now (main to be merged in) | `native_mod_screen.json` | `feature` | - **Fragments.** Every fragment here is helper-only (`"hooks": []`), as main's `native_local_sound.json` is: the catalog's `neoforge`, `side` and `cancellable` keys belong to hook entries, so none of them carries those. - **Overlaps outside the series.** #5685 and #5675 (splitscreen) meet in one hunk, `Extras::serialize`'s format string: keep both keys. #5731 and #5800 (RAM limit) both edit `join_server`, and merge cleanly either way. #5741 already has #5617's approved head merged in. - **Stacks.** #5733 → #5735 → #5737 is one chain: after each merges, merge main into the next (`git merge origin/main`, never a rebase) and its diff shrinks to its own change. - **Conflicts between them:** none left. #5741's `Game` field now sits apart from #5731's (test-merged both ways), and #5739's docs section is on main. - **API numbers.** No pull request edits `NATIVE_HOOKS_API`, `native-hooks.json` or the API history: each brings one fragment. The `native hook stamp` workflow numbers them in first-parent merge order after they land, so the order above is also the order of their numbers. A fragment file never conflicts with another (different names); if a stamp PR merged in between, nothing needs redoing on these branches. - **Rollback.** Revert a merge commit (`git revert -m 1`). Before the stamp PR merges that is all; once a helper has an API number, fix forward instead, since bundles may already depend on it.
Author
Owner

@Stink-O commented on GitHub (Nov 1, 2026):

The series is up:

  • #5685 sound channels (fixes #5683)
  • #5686 faster /fill (fixes #5684)
  • #5729 the world's clock
  • #5731 raycast across the distant terrain, and claimed item use
  • #5733 bulk block edits into chunk sections
  • #5735 bulk edits for server mods (draft, stacked on #5733)
  • #5737 surface heights and column reads (draft, stacked on #5735)
  • #5739 push the player and set the flying speed
  • #5741 a client mod's own screen (draft, stacked on #5731)
<!-- gh-comment-id:6553669123 --> @Stink-O commented on GitHub (Nov 1, 2026): The series is up: - #5685 sound channels (fixes #5683) - #5686 faster `/fill` (fixes #5684) - #5729 the world's clock - #5731 raycast across the distant terrain, and claimed item use - #5733 bulk block edits into chunk sections - #5735 bulk edits for server mods (draft, stacked on #5733) - #5737 surface heights and column reads (draft, stacked on #5735) - #5739 push the player and set the flying speed - #5741 a client mod's own screen (draft, stacked on #5731)
Author
Owner

@Stink-O commented on GitHub (Nov 1, 2026):

🤖 Posted by Stink-O's AI agent (Claude Code, Claude Opus 5.5), not by Stink-O personally.

All merged on 2026-11-01. Thanks to levzzz, ludovic111, arismoko and kacpherek for the reviews, the fixes and the
merges:

PR What Merged
#5729 native_clock levzzz5154
#5739 native_push_player, native_set_flying_speed levzzz5154
#5686 faster /fill ludovic111
#5685 the uiSoundReserve extra ludovic111
#5741 a mod's own screen ludovic111
#5731 view raycast, claimed items ludovic111
#5733 bulk block edits engine (with the light and biome-remesh fixes on resent columns) ludovic111
#5735 native_edit_blocks (with a block entity per new block) ludovic111
#5737 surface heights and column reads ludovic111

The fragments native_clock, native_claimed_items, native_edit_blocks, native_read_columns and
native_mod_screen are waiting for the next stamp. Orbital Laser's native build now builds on main with no hooks of
its own, only the mixin bundle on top. Closing this as done.

<!-- gh-comment-id:6562431435 --> @Stink-O commented on GitHub (Nov 1, 2026): > 🤖 Posted by Stink-O's AI agent (Claude Code, Claude Opus 5.5), not by Stink-O personally. All merged on 2026-11-01. Thanks to levzzz, ludovic111, arismoko and kacpherek for the reviews, the fixes and the merges: | PR | What | Merged | | --- | --- | --- | | #5729 | `native_clock` | levzzz5154 | | #5739 | `native_push_player`, `native_set_flying_speed` | levzzz5154 | | #5686 | faster `/fill` | ludovic111 | | #5685 | the `uiSoundReserve` extra | ludovic111 | | #5741 | a mod's own screen | ludovic111 | | #5731 | view raycast, claimed items | ludovic111 | | #5733 | bulk block edits engine (with the light and biome-remesh fixes on resent columns) | ludovic111 | | #5735 | `native_edit_blocks` (with a block entity per new block) | ludovic111 | | #5737 | surface heights and column reads | ludovic111 | The fragments `native_clock`, `native_claimed_items`, `native_edit_blocks`, `native_read_columns` and `native_mod_screen` are waiting for the next stamp. Orbital Laser's native build now builds on main with no hooks of its own, only the mixin bundle on top. Closing this as done.
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#1790
No description provided.