Find a file
2023-11-29 21:34:10 -08:00
agent_code no code return, placeblock more reliable 2023-11-12 23:19:58 -06:00
utils examples with queries 2023-11-29 21:34:10 -08:00
.gitignore updated memory saving 2023-11-15 11:38:17 -08:00
agent.js restart memory, examples into turns 2023-11-19 15:34:53 -06:00
main.js restart memory, examples into turns 2023-11-19 15:34:53 -06:00
package.json improved placeblock and attackmob 2023-11-19 17:11:46 -06:00
README.md fixed many skills 2023-11-27 21:07:52 -06:00

Mindcraft

Crafting minds for Minecraft with AI!

Installation

Install Node.js >= 14 from nodejs.org

Install node modules with npm install

Usage

Start minecraft server on localhost port 55916

Add OPENAI_API_KEY (and optionally OPENAI_ORG_ID) to your environment variables.

run node main.js

Node Module Patches

Some of the node modules that we depend on have bugs in them. PRs have been submitted but currently you must manually implement these fixes in some node modules:

  • In mineflayer-collectblock/lib/CollectBlock.js, replace !block.canHarvest(bot.heldItem) with bot.heldItem !== null && !block.canHarvest(bot.heldItem.type) (line 80?)