Bookshelf Finite State Machine Module
Describe behaviors as states and transitions, and run them on entities or globally.
介绍

🔄 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
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
常见问题
Bookshelf Finite State Machine Module 支持哪些 Minecraft 版本?
Bookshelf Finite State Machine Module 支持 Minecraft Java 版 26.3。下载时注意选择和你游戏版本一致的文件。
Bookshelf Finite State Machine Module 怎么安装?
新建世界时在「数据包」里把下载的 .zip 拖进去;已有的存档,把文件放进存档目录下的 datapacks 文件夹,进游戏输入 /reload 即可生效。服务器同样放在世界目录的 datapacks 里。
Bookshelf 的其他作品
查看全部 →
Bookshelf Suite Bundle
将完整的 Bookshelf 前置库整合进一个数据包:包含数十个模块,涵盖方块、碰撞箱、数学、射线检测等内容。
Bookshelf Raycast Module
Cast rays to detect block and entity hits, with voxel-accurate collisions.
Bookshelf Block Module
Manipulate blocks with their states and NBT, and combine block properties.
Bookshelf View Module
Execute commands based on what an entity is looking at.
评论
登录后评论和评分