mirror of
https://github.com/kolbytn/mindcraft.git
synced 2025-04-21 21:52:07 +02:00
added gamemode to stats
This commit is contained in:
parent
85c2f56afe
commit
304fbc807c
1 changed files with 5 additions and 1 deletions
|
@ -17,10 +17,11 @@ export const queryList = [
|
|||
let pos = bot.entity.position;
|
||||
// display position to 2 decimal places
|
||||
res += `\n- Position: x: ${pos.x.toFixed(2)}, y: ${pos.y.toFixed(2)}, z: ${pos.z.toFixed(2)}`;
|
||||
res += `\n- Gamemode: ${bot.game.gameMode}`;
|
||||
res += `\n- Health: ${Math.round(bot.health)} / 20`;
|
||||
res += `\n- Hunger: ${Math.round(bot.food)} / 20`;
|
||||
res += `\n- Biome: ${world.getBiomeName(bot)}`;
|
||||
let weather = "clear";
|
||||
let weather = "Clear";
|
||||
if (bot.rainState > 0)
|
||||
weather = "Rain";
|
||||
if (bot.thunderState > 0)
|
||||
|
@ -60,6 +61,9 @@ export const queryList = [
|
|||
if (res == 'INVENTORY') {
|
||||
res += ': none';
|
||||
}
|
||||
if (agent.bot.game.gameMode === 'creative') {
|
||||
res += '\n(You have infinite items in creative mode)';
|
||||
}
|
||||
return pad(res);
|
||||
}
|
||||
},
|
||||
|
|
Loading…
Add table
Reference in a new issue