π Quickstart#
This page gives a quick overview of how to get started with the Bookshelf library, and how to use it.
π₯ Installation#
The Bookshelf Manager is the official tool for creating your own custom Bookshelf bundle.
β¨ Key Benefits
π― Precise Selection: Choose exactly the modules you need
π Dependency Visualization: Intuitive interface showing relationships between modules
π·οΈ Tag System: Easily identify modules with tags, grouping them by purpose
π₯ Installation Steps
Visit mcbookshelf.dev
Select your desired modules
Review automatically added dependencies
Download your custom bundle
Bookshelf releases are available on both Github and Modrinth. In each release, you will find zipped datapacks.
π₯ Installation Options
π Bundles: You can download entire bundles which includes all modules and dependencies of a certain type in a single datapack. This is a good option if you want to explore everything Bookshelf has to offer.
π§© Module by Module: Alternatively, you can download individual modules as datapacks. Each module zip file contains all the dependencies needed for that module to work. This is a great option if you only need specific functionalities and want to keep your installation lightweight.
After downloading, move the zip file to the datapacks directory of your Minecraft world.
If youβre using the beet build pipeline, you can install the Bookshelf package (mcbookshelf) from PyPI to include Bookshelf modules in your build.
π₯ Installation Steps
pip install mcbookshelf
Once installed, you can reference Bookshelf modules directly in your beet configuration.
To include a complete bundle or a specific module:
require:
- bookshelf.bundle.dev
- bookshelf.bundle.<name_of_bundle>
- bookshelf.module.raycast
- bookshelf.module.<name_of_module>
If youβre a developer who wants to work directly with the source code, youβll need to build Bookshelf before using it. This build process is necessary because some features require computed data that canβt be directly included in the source code. Hereβs how to get started:
π οΈ Prerequisites
Basic understanding of datapacks
Git (for cloning the repository)
π₯ Installation Steps
Clone the repository:
git clone https://github.com/mcbookshelf/bookshelf.git
cd bookshelf
Install dependencies:
pdm install
Build the library:
pdm run modules build
After building, youβll find all modules as datapacks in the build folder. Each module includes its own dependencies as well as some utility namespaces.
Note
Please note that while the datapacks from releases are stable, they might not include the very latest features or fixes that are available in the source code. If you want the most up-to-date version of Bookshelf, consider installing from source or downloading a pre-release from Github.
If you like the project, donβt hesitate to star it on Github and/or follow it on Modrinth π.
πΆ First Steps#
Important
Bookshelf relies on persistent entities to enhance performances. Therefore, itβs important not to kill all entities. Instead, you can use the command kill @e[tag=!bs.persistent]. Learn more here
π Good Practices#
Bookshelf is designed to minimize unintended side effects. However, complications can arise when multiple datapacks utilize the same one. To prevent potential issues, itβs always recommended to set inputs prior to executing a function. This holds true even though Bookshelf adheres to a strict policy of preserving inputs. By following this practice, you can ensure smoother operation and prevent unexpected behaviors.
Note
This section is in progress. If you have some ideas about how to improve the first steps with Bookshelf, please share it on our Discord server.
π¬ Did it help you?
Feel free to leave your questions and feedback below!