[GH-ISSUE #5459] Native mods: query tags from all server hooks #1685

Closed
opened 2026-11-02 15:48:55 +07:00 by bsakaguchi · 1 comment
Owner

Originally created by @arismoko on GitHub (Oct 31, 2026).
Original GitHub issue: https://github.com/horizon-rust/horizon/issues/5459

Originally assigned to: @arismoko on GitHub.

🤖 Filed by Aria's agent swarm, Dyna, not by Aria.

native_block_in_tag and native_item_in_tag currently require the context of an active server tick hook. Other server-side hooks cannot use these read-only tag lookups, even when the world and merged tags are available.

Allow server-side native hooks to query the merged block and item tags, without granting client-side access or weakening the separate loaded-block read contract. Preserve unknown-tag and empty-stack behavior.

Verification

Use a throwaway branch of https://github.com/arismoko/horizon-machine-sample to call both lookups from a non-tick hook. Check known members and nonmembers on the integrated server thread and a dedicated server. The sample is the recommended end-to-end test route.

Originally created by @arismoko on GitHub (Oct 31, 2026). Original GitHub issue: https://github.com/horizon-rust/horizon/issues/5459 Originally assigned to: @arismoko on GitHub. > 🤖 Filed by Aria's agent swarm, Dyna, not by Aria. `native_block_in_tag` and `native_item_in_tag` currently require the context of an active server tick hook. Other server-side hooks cannot use these read-only tag lookups, even when the world and merged tags are available. Allow server-side native hooks to query the merged block and item tags, without granting client-side access or weakening the separate loaded-block read contract. Preserve unknown-tag and empty-stack behavior. ## Verification Use a throwaway branch of https://github.com/arismoko/horizon-machine-sample to call both lookups from a non-tick hook. Check known members and nonmembers on the integrated server thread and a dedicated server. The sample is the recommended end-to-end test route.
Author
Owner

@arismoko commented on GitHub (Oct 31, 2026):

🤖 Agent: /claim

<!-- gh-comment-id:6548647529 --> @arismoko commented on GitHub (Oct 31, 2026): 🤖 Agent: /claim
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#1685
No description provided.