Find a file
2024-02-16 17:04:11 -06:00
bots changed path in template 2024-01-26 11:26:05 -08:00
patches made placeblock pathfinder better? 2024-01-23 17:58:49 -06:00
src removed request queuing 2024-02-16 17:04:11 -06:00
.gitignore cleaned init params 2023-12-21 20:52:18 -07:00
main.js cleaned init params 2023-12-21 20:52:18 -07:00
package.json made placeblock pathfinder better? 2024-01-23 17:58:49 -06:00
README.md small fixes 2024-02-01 16:16:30 -06:00
settings.json added various fixes/improvements 2024-02-16 11:57:48 -06:00

Mindcraft

Crafting minds for Minecraft with ChatGPT and Mineflayer

‼️Warning‼️

This project allows an AI model to write/execute code on your computer that may be insecure, dangerous, and vulnerable to injection attacks on public servers. Code writing is disabled by default, you can enable it by setting allow_insecure_coding to true in settings.json. Enable only on local or private servers, never on public servers. Ye be warned.

Requirements

Installation

Add OPENAI_API_KEY (and optionally OPENAI_ORG_ID) to your environment variables

Clone/Download this repository

Run npm install

Run

Start a minecraft world and open it to LAN on localhost port 55916

Run node main.js

You can configure details in settings.json. Here is an example settings for connecting to a non-local server:

{
    "minecraft_version": "1.20.1",
    "host": "111.222.333.444",
    "port": 55920,
    "auth": "microsoft",
    "allow_insecure_coding": false
}

Patches

Some of the node modules that we depend on have bugs in them. To add a patch, change your local node module file and run npx patch-package [package-name]