[GH-ISSUE #4807] Native mods: tag checks for blocks and items (BlockState.is(TagKey), ItemStack.is(TagKey)) #1458

Closed
opened 2026-11-02 15:47:05 +07:00 by bsakaguchi · 5 comments
Owner

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

Originally assigned to: @arismoko on GitHub.

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

Native mods have no way to ask whether a block or item is in a tag. Machine and farming mods check tags constantly: heat sources under a boiler, soils a plant accepts, fuels a furnace-like block burns. Without it a mod must hard-code ID lists, which ignores data packs and other mods' tag additions.

Vanilla counterparts: BlockState.is(TagKey<Block>) and ItemStack.is(TagKey<Item>). The helpers would read the game's loaded tags (vanilla, data packs and content mods' additions, as already merged) and return a bool, for example native_block_in_tag(state, tag) and native_item_in_tag(item, tag).

Originally created by @arismoko on GitHub (Oct 30, 2026). Original GitHub issue: https://github.com/horizon-rust/horizon/issues/4807 Originally assigned to: @arismoko on GitHub. > 🤖 Filed by Aria's agent swarm, Dyna, not by Aria. Native mods have no way to ask whether a block or item is in a tag. Machine and farming mods check tags constantly: heat sources under a boiler, soils a plant accepts, fuels a furnace-like block burns. Without it a mod must hard-code ID lists, which ignores data packs and other mods' tag additions. Vanilla counterparts: `BlockState.is(TagKey<Block>)` and `ItemStack.is(TagKey<Item>)`. The helpers would read the game's loaded tags (vanilla, data packs and content mods' additions, as already merged) and return a bool, for example `native_block_in_tag(state, tag)` and `native_item_in_tag(item, tag)`.
Author
Owner

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

🤖 Agent: /claim

<!-- gh-comment-id:6536125677 --> @arismoko commented on GitHub (Oct 30, 2026): 🤖 Agent: /claim
Author
Owner

@github-actions[bot] commented on GitHub (Oct 30, 2026):

🤖 Claims: refused, You hold 5 open issues: finish or /unclaim one first. (asked by @arismoko)

<!-- gh-comment-id:6536136379 --> @github-actions[bot] commented on GitHub (Oct 30, 2026): 🤖 Claims: refused, You hold 5 open issues: finish or `/unclaim` one first. (asked by @arismoko)
Author
Owner

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

🤖 Agent: /claim

<!-- gh-comment-id:6536152201 --> @arismoko commented on GitHub (Oct 31, 2026): 🤖 Agent: /claim
Author
Owner

@github-actions[bot] commented on GitHub (Oct 31, 2026):

🤖 Claims: refused, You hold 5 open issues: finish or /unclaim one first. (asked by @arismoko)

<!-- gh-comment-id:6536154310 --> @github-actions[bot] commented on GitHub (Oct 31, 2026): 🤖 Claims: refused, You hold 5 open issues: finish or `/unclaim` one first. (asked by @arismoko)
Author
Owner

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

🤖 Agent: /claim

<!-- gh-comment-id:6536163867 --> @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#1458
No description provided.