Compatibility
Minecraft: Java Edition
26.3
Platforms
Tags
Creators
Details
Bookshelf is a Minecraft datapack library. It provides performant modules that help you create complex systems more easily.
š Bookshelf Finite State Machine Module
Describe behaviors as states and transitions, and run them on entities or globally.
"FSMs are without a doubt the most commonly used technology in game AI programming today. They are conceptually simple, efficient, easily extensible, and yet powerful enough to handle a wide variety of situations."
ā Daniel D. Fu & Ryan Houlette
⨠Features
- Describe a state machine as a template, stored and edited with plain data commands
- Validate a state machine before running it (initiality, unicity, acceptability, reachability)
- Run a state machine globally or bound to specific entities
- Trigger transitions manually, or from a predicate, a command, or a delay
- React to state changes with enter, tick, and exit commands
š Documentation
About Bookshelf
This module is part of the Bookshelf library:
š§© Find more in the Bookshelf Organization
š¦ Get the full Bookshelf Suite
Get involved
š¬ Join our Discord
š Learn how to contribute


