[GH-ISSUE #5497] Native mods: a mod block's comparator output #1703

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

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

Originally assigned to: @levzzz5154 on GitHub.

Part of #4953

A mod block that isn't a container can't give a comparator signal
Vanilla asks BlockBehaviour.hasAnalogOutputSignal and getAnalogOutputSignal(state, level, pos), so a block can say how full or far along it is (a cake's bites, a composter's level)

What's missing

  • a mod block answering those two for its state and position
  • comparators updating when the block says its output changed, as vanilla's updateNeighbourForOutputSignal does
Originally created by @reservedbytes on GitHub (Oct 31, 2026). Original GitHub issue: https://github.com/horizon-rust/horizon/issues/5497 Originally assigned to: @levzzz5154 on GitHub. Part of #4953 A mod block that isn't a container can't give a comparator signal Vanilla asks `BlockBehaviour.hasAnalogOutputSignal` and `getAnalogOutputSignal(state, level, pos)`, so a block can say how full or far along it is (a cake's bites, a composter's level) What's missing - a mod block answering those two for its state and position - comparators updating when the block says its output changed, as vanilla's `updateNeighbourForOutputSignal` does
Author
Owner

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

/claim

<!-- gh-comment-id:6549521416 --> @levzzz5154 commented on GitHub (Oct 31, 2026): /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#1703
No description provided.