mirror of
https://github.com/FoundationAgents/MetaGPT.git
synced 2026-06-20 15:38:09 +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
|
|
@ -13,6 +13,7 @@ from metagpt.minecraft_team import MinecraftPlayer
|
|||
|
||||
async def learn(task="Start", investment: float = 50.0, n_round: int = 3):
|
||||
mc_player = MinecraftPlayer()
|
||||
mc_player.set_port(2253) # Modify this to your LAN port
|
||||
mc_player.hire(
|
||||
[
|
||||
CurriculumDesigner(),
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue