{"repo":"PrismarineJS/mineflayer-statemachine","free":true,"listed":false,"github":"https://github.com/PrismarineJS/mineflayer-statemachine","clone":"git clone https://github.com/PrismarineJS/mineflayer-statemachine.git","description":"A state machine plugin for Mineflayer to aid in designing more complex behavior trees.","language":"TypeScript","stars":135,"topics":["ai","bot","minecraft","mineflayer","state-machine"],"license":"MIT","category":"workflow-automation","readme_excerpt":"Mineflayer-StateMachine This project is a plugin designed for Mineflayer that adds a high level API for writing state machines. As bot AI code can grow very quickly, writing this code in a finite state machine manner can help keep the code base manageable and improve quality of bot behavior trees. --- What is it? Mineflayer-StateMachine is a plugin for Mineflayer. It aims to add a flexible and customizable state machine API on top of Mineflayer to make it easier to write and scale bots. Writing a complex bot AI can be difficult, especially if it has to be convincing. Finite state machines make this process much eaiser by offloading the fine details into isolated modules which only serve a single function or behavior. These modules can then be connected together in a top level component to customize how these seperate modules should interact and pass around control of the bot and state machine parameters. Showcase Videos Webserver Demo Mining Demo Getting Started This plugin is built using Node and can be installed using: This plugin relies on mineflayer-pathfinder for movement related behaviors. If these behaviors are used, this plugin must be loaded before starting the state machine object. Simple Bot The API for Mineflayer-StateMachine aims to be simple and intuitive, requiring minimal effort to setup a working state machine. The example below creates a three-state finite state machine which finds and follows the nearest player, stopping and looking at them when they are cl","default_branch":null,"files":null,"tree":[],"storefront":"/r/PrismarineJS","claimed":false,"request_supported":{"post":"https://gitbuyer.com/r/PrismarineJS/mineflayer-statemachine/request-supported","requests":0},"note":"indexed from public GitHub; nothing is for sale on this page. Clone it from GitHub. Paid listings live at /search."}