Skip to content
Br1 edited this page Oct 28, 2019 · 10 revisions

Welcome to the Minecraft Agents Wiki!

How does it work?

The agents are programmed in JavaScript using the Mineflayer API by PrismarineJS. With it, you can simulate a player entity in any multiplayer server.

What you need

Sidenote: If you own Minecraft Bedrock Edition (Windows 10) you can program the Agent mob and make him follow instructions using MakeCode.

Installation

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.

Features

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.

Documentation

You can access the documentation for the API here.

The Agents

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.

Path Finding

For more information about teh A* mineflayer implementation click here

Videos

Click the name to see the agent in action:

Clone this wiki locally