2f6d259615
Horizon only kept a chiseled bookshelf's saved data, so using it did nothing. It is now a block entity with six slots and lastInteractedSlot: - ChiseledBookShelfBlock.useItemOn / useWithoutItem: the slot comes from the hit position on the front face (getHitSlot, 3x2). A #bookshelf_books item goes into an empty slot (one book, the insert sounds, the used statistic), a book comes out to the inventory or the ground, with the pickup sounds. The slot_N_occupied states follow (ChiseledBookShelfBlockEntity.updateState) and reach a server's clients with the block update; the client's prediction ends the click the same way. - Hoppers and droppers use its container: books only, one to a slot, and the occupied state and last slot follow what they moved. - The comparator reads lastInteractedSlot from the block entity.