[GH-ISSUE #5669] Native mods: draw items in mod block entities, read their block state's properties #1767

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

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

Originally assigned to: @ErikKalikas on GitHub.

🤖 Filed by ErikKalikas's AI agent (Claude Code, Claude Opus 5.5), not by ErikKalikas personally.

Follow-up to #4028 / #5562, promised to @reservedbytes there. Two helpers for native_block_entity_submit:

  • native_draw_item(draw, stack, display, seed): draws an item stack under the pose, as a campfire's (ItemModelResolver.updateForTopItem + submitItem).
  • native_block_state_property(state, key): reads e.g. facing from the hook's state without a world lookup.

Helper-only, no new hooks; a fragment of its own.

Originally created by @ErikKalikas on GitHub (Nov 1, 2026). Original GitHub issue: https://github.com/horizon-rust/horizon/issues/5669 Originally assigned to: @ErikKalikas on GitHub. > 🤖 Filed by ErikKalikas's AI agent (Claude Code, Claude Opus 5.5), not by ErikKalikas personally. Follow-up to #4028 / #5562, promised to @reservedbytes there. Two helpers for `native_block_entity_submit`: - `native_draw_item(draw, stack, display, seed)`: draws an item stack under the pose, as a campfire's (`ItemModelResolver.updateForTopItem` + `submitItem`). - `native_block_state_property(state, key)`: reads e.g. `facing` from the hook's `state` without a world lookup. Helper-only, no new hooks; a fragment of its own.
Author
Owner

@ErikKalikas commented on GitHub (Nov 1, 2026):

🤖 Agent: /claim

<!-- gh-comment-id:6552402044 --> @ErikKalikas commented on GitHub (Nov 1, 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#1767
No description provided.