🧩 Modules#
Bookshelf is designed with modularity in mind. Features that serve a common purpose are organized into distinct, standalone, namespaced modules.
🌟 Featured Modules#
Get and manipulate blocks (supports BlockStates and NBT).
Cast rays and see if they collide with blocks or entities.
Mathematical functions: sin, cos, exp, log, sqrt, and much more!
Generate terrains and landscapes, incorporating natural features.
Random functions for different distributions and noise patterns.
Easily manage the health of a player or the lifetime of an entity!
📖 Key Definitions#
Bundle |
A set of modules packaged together for distribution. |
Dependency |
A module that another module relies on to function properly. It must be loaded for the dependent module to work. |
Feature |
A user-facing element designed to accomplish a task. Features are often represented as function tags, but can also include loot tables, structures, predicates, and more. |
Module |
A collection of related features within a namespace, serving a specific purpose. |
Weak Dependency |
An optional dependency that enhances functionality if present, but is not essential for the main module to function correctly. |
|
Specifies a command to be executed by a feature when a particular event occurs. |
|
Specifies a command to be executed by a feature, often immediately. |
|
Specifies optional arguments. |
|
Shortened from “as to at.” These functions take two positions: one given through a positional argument (e.g., |