Files
Pumpkin/pumpkin-inventory
Mcxiaocaibug bff591e424 feat: emit lectern redstone signals and add the lectern screen (#2759)
Implements the missing redstone half of the lectern:
- page turns pulse the powered state for 2 game ticks (vanilla parity),
  strongly powering the block below and playing the page-turn event
- placing/taking a book resets the pulse and notifies neighbors
- comparator output now uses the vanilla formula
  floor(page / (pageCount - 1) * 14) + 1 instead of a scaled variant
- adds the lectern screen handler (page buttons, jump-to-page and
  take-book) so the pulse can actually be triggered by players; the
  current page is synced as container property 0
- using a lectern with a book now opens the reading screen instead of
  silently deleting the book

Co-authored-by: Mcxiaocaibug <Mcxiaocaibug@users.noreply.github.com>
2026-08-05 08:56:31 +02:00
..
2026-06-12 20:55:29 +02:00