mirror of
https://github.com/Pumpkin-MC/Pumpkin.git
synced 2026-08-30 20:14:23 +00:00
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>