mirror of
https://github.com/kolbytn/mindcraft.git
synced 2025-04-21 21:52:07 +02:00
Mirror of https://github.com/kolbytn/mindcraft.git
agent_code | ||
utils | ||
.gitignore | ||
agent.js | ||
main.js | ||
package.json | ||
README.md |
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)
withbot.heldItem !== null && !block.canHarvest(bot.heldItem.type)
(line 80?)