-
Notifications
You must be signed in to change notification settings - Fork 0
Home
Welcome to the Minecraft Agents Wiki!
The agents are programmed in JavaScript using the Mineflayer API by PrismarineJS. With it, you can simulate a player entity in any multiplayer server.
- A Mojang account.
- A copy of Minecraft Java Edition.
- A multiplayer server. You can create a local server to test your bot, follow this tutorial to set up one.
Sidenote: If you own Minecraft Bedrock Edition (Windows 10) you can program the Agent mob and make him follow instructions using MakeCode.
If you don't have Node.js, install it. We need it to get the npm packet manager.
Use npm install mineflayer to get the API.
You can create a package.json file for easy installation of all the dependencies of a project across devices. Use npm init -y to generate one.
Mineflayer provides a rich feature list to create a Minecraft bot:
- Entity knowledge and tracking.
- Block knowledge.
- Basic physics and movement.
- Attacking entities and using vehicles.
- Inventory management.
- Crafting, chest, dispensers, enchantment tables.
- Digging and building.
- Activating blocks and using items.
- Chat.
- Misc stuff (know health, know whether it is raining).
There are third party plugins that add other features on top of these ones. Essentially other libraries that you can also install with npm.
Important: As of October 2019, the Mineflayer API supports Minecraft Java Edition up to version 1.12.
You can access the documentation for the API here.
Click here to see the basics of how a bot can be created with the API and how its able to sense the game world. Also, checkout how the agents in this repository operate, with the help of diagrams.
For more information about teh A* mineflayer implementation click here
Click the name to see the agent in action: