To run a simple task manually, ensure Minecraft is installed and a supported version is launched. Open the world to LAN on port 55916. You can then execute a task using node main.js by specifying a task path and a task ID.
Task JSON Format Example:
{
"gather_oak_logs": {
"goal": "Collect at least four logs",
"initial_inventory": {
"0": {
"wooden_axe": 1
}
},
"agent_count": 1,
"target": "oak_log",
"number_of_target": 4,
"type": "techtree",
"max_depth": 1,
"depth": 0,
"timeout": 300,
"blocked_actions": {
"0": [],
"1": []
},
"missing_items": [],
"requires_ctable": false
}
}
Key Fields:
initial_inventory: Items the bot starts with.target: The item to be collected.number_of_target: The quantity required for success.timeout: Seconds before the agent leaves the game (default is 300).
node main.js --task_path tasks/basic/single_agent.json --task_id gather_oak_logs