mirror of
https://github.com/FoundationAgents/MetaGPT.git
synced 2026-06-17 15:35:21 +02:00
612 B
612 B
MG-MC记录文档
0926: 环境信息获取和更新 on_event()实际内容
- Nodejs + Mineflayer配置
A.自行安装Node.js (nodejs.org)
B.Mineflayer配置
cd metagpt/mineflayer_env/mineflayer
npm install -g npx
npm install
cd mineflayer-collectblock
npm install
npx tsc
cd ..
npm install
2.配置完游戏后,在 minecraft_run.py 下修改
mc_player.set_port(2465) # Modify this to your LAN port
python minecraft_run.py