Smithed Summit is back! Check it out here!
Download
Choose Minecraft Version
26.326.3v4.2.0
Close

Bookshelf

Bookshelf is a Minecraft datapack library. It provides performant modules that help you create complex systems more easily.

Documentation Ā  Ā  Ā 


šŸ”„ 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

Smithed

Copyright Ā© 2023-2026 Smithed
Not an official Minecraft product. Not approved by or associated with Mojang Studios