mirror of
https://github.com/FoundationAgents/MetaGPT.git
synced 2026-06-17 15:35:21 +02:00
Merge pull request #428 from fromlimbo/minecraft
Mineflayer:set born location to (26,100,20)
This commit is contained in:
commit
3613b9a56e
1 changed files with 2 additions and 2 deletions
|
|
@ -51,7 +51,7 @@ app.post("/start", (req, res) => {
|
|||
});
|
||||
|
||||
bot.once("spawn", async () => {
|
||||
mineflayerViewer(bot, { port: 3007, firstPerson: false })
|
||||
mineflayerViewer(bot, { port: 3007, firstPerson: false })
|
||||
bot.removeListener("error", onConnectionFailed);
|
||||
let itemTicks = 1;
|
||||
if (req.body.reset === "hard") {
|
||||
|
|
@ -127,7 +127,7 @@ app.post("/start", (req, res) => {
|
|||
bot.chat(`/spreadplayers ~ ~ 0 300 under 80 false @s`);
|
||||
await bot.waitForTicks(bot.waitTicks);
|
||||
}
|
||||
|
||||
bot.chat(`/spawnpoint bot 26 100 20`);
|
||||
await bot.waitForTicks(bot.waitTicks * itemTicks);
|
||||
res.json(bot.observe());
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue