added gamemode to stats

This commit is contained in:
MaxRobinsonTheGreat 2024-05-10 11:35:44 -05:00
parent 85c2f56afe
commit 304fbc807c

View file

@ -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);
}
},