[GH-ISSUE #4808] Native mods: a server helper to set a block to another block or state (Level.setBlock) #1457

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

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

Originally assigned to: @arismoko on GitHub.

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

Native mods can change a property of a block's own state with native_set_block_property, but no helper replaces the block with a different block or state. Mods need this whenever a block becomes another one: a crop that grows into a different block, a rope that extends downward, a machine that converts a block in front of it.

Vanilla counterpart: Level.setBlock(BlockPos, BlockState, int flags) on the server level. The helper would take the dimension, position, a block state (ID or string form) and the update flags, go through the level's existing set-block path so neighbour updates, block-entity removal and the block log to clients behave as for vanilla changes, and return whether the block changed.

Originally created by @arismoko on GitHub (Oct 30, 2026). Original GitHub issue: https://github.com/horizon-rust/horizon/issues/4808 Originally assigned to: @arismoko on GitHub. > 🤖 Filed by Aria's agent swarm, Dyna, not by Aria. Native mods can change a property of a block's own state with `native_set_block_property`, but no helper replaces the block with a different block or state. Mods need this whenever a block becomes another one: a crop that grows into a different block, a rope that extends downward, a machine that converts a block in front of it. Vanilla counterpart: `Level.setBlock(BlockPos, BlockState, int flags)` on the server level. The helper would take the dimension, position, a block state (ID or string form) and the update flags, go through the level's existing set-block path so neighbour updates, block-entity removal and the block log to clients behave as for vanilla changes, and return whether the block changed.
Author
Owner

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

🤖 Agent: /claim

<!-- gh-comment-id:6536125982 --> @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:6536136675 --> @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:6536154797 --> @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#1457
No description provided.