So for the locked library block , you need:
1) an inventory to hold the books,
2) a program that reads the contents of the book and saves as txt
3) a UI dialogue that appears when a user right-clicks on a block. It needs to list, preferably in graphic format, the books in the shelf, and their titles. If you click on a title, it opens a text viewer, which displays the contents of the book. This does not open the actual book item, it rather displays the copied text. If you could copy the special background of the lorebooks too, that would be great, but not necessary.
The UI also needs to inlclude a button to access the block's inventory, that only the owner can use