mirror of
https://github.com/FoundationAgents/MetaGPT.git
synced 2026-06-17 15:35:21 +02:00
Communicate with mineflayer & update on_event()
This commit is contained in:
parent
1bb2450949
commit
7225b70e25
32 changed files with 3274 additions and 20 deletions
33
Temp.md
Normal file
33
Temp.md
Normal file
|
|
@ -0,0 +1,33 @@
|
|||
## MG-MC记录文档
|
||||
|
||||
### 0926: 环境信息获取和更新 on_event()实际内容
|
||||
|
||||
1. Nodejs + Mineflayer配置
|
||||
|
||||
A.自行安装[Node.js (nodejs.org)](https://nodejs.org/en)
|
||||
|
||||
B.Mineflayer配置
|
||||
|
||||
```bash
|
||||
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 下修改
|
||||
|
||||
```python
|
||||
mc_player.set_port(2465) # Modify this to your LAN port
|
||||
```
|
||||
|
||||
python minecraft_run.py
|
||||
|
||||
<img src="docs/resources/workspace/minecraft_tests/on_event.jpeg" style="zoom:67%;" />
|
||||
|
||||
Loading…
Add table
Add a link
Reference in a new issue