Bookshelves You Can Use Guide
0
User Guide
Prerequisites
- A Minecraft server running Spigot (or a Spigot-compatible fork) on one of the versions listed in
minecraft-versions.json: currently 1.19.4, 1.21.11, 26.2 and 26.3. Other versions from 1.19.4 onwards are expected to work but are not tested (see the README's Supported Minecraft Versions). - The Java runtime that your Minecraft version requires. The plugin is compiled for Java 9 bytecode, so it adds no Java requirement of its own.
- The Ponder library (already bundled inside the plugin JAR; no separate installation required).
First Steps
- Install the plugin by placing the JAR file in your server's
plugins/folder. - Restart the server.
- Right-click any bookshelf block in the world to open its inventory.
Common Scenarios
Storing Items in a Bookshelf
- Walk up to a bookshelf block in the world.
- Right-click the bookshelf.
- The chat message "You rummage through the bookshelf." appears, and a 9-slot inventory will open with the title "Bookshelf".
- Place items into the inventory.
- Close the inventory. Your items will remain in the bookshelf until the server restarts or the plugin is reloaded.
Retrieving Items from a Bookshelf
- Right-click a bookshelf that already has items stored in it.
- Take the items you need from the inventory.
- Close the inventory.
Interact Cooldown
After opening a bookshelf, there is a 2-second cooldown before you can open a bookshelf again — the same one or any other. This prevents accidental double-opens. A right-click during the cooldown does not open anything and is not cancelled, so it behaves as it would without the plugin (a held block can be placed against the bookshelf).
Permissions
| Permission | Default | Description |
|---|---|---|
bycu.help | true | Allows the player to use the help command. |
Notes
- Bookshelf inventories are stored in memory and are not persisted across server restarts. They are also lost whenever the plugin is disabled and enabled again without a restart (for example by
/reloador a plugin manager), because nothing saves them when the plugin is disabled. - Each bookshelf block in the world has its own independent inventory.
- An inventory belongs to the block position, not the block. Breaking a bookshelf does not drop the items stored in it; they stay at that position, and a bookshelf placed there later opens with them.
- Only the plain bookshelf block opens an inventory. Chiseled bookshelves are a different block and are left alone: right-clicking one inserts or takes a book as it does without the plugin.
- Only right-clicks open a bookshelf. Left-clicking is left alone, so bookshelves are broken the usual way.
- A right-click that opens a bookshelf is cancelled, so a held block is not placed against the bookshelf at the same time.
- If another plugin, such as a region or claim protection plugin, has already denied the interaction with the bookshelf, the bookshelf does not open. This only applies if that plugin handles the event before Bookshelves You Can Use does. A plugin that denies only the use of the held item does not stop the bookshelf from opening.