From f827bb0a208c18dc412e12f31639454a32af72fe Mon Sep 17 00:00:00 2001 From: Lawtro37 <98205608+Lawtro37@users.noreply.github.com> Date: Wed, 30 Oct 2024 22:18:17 +1000 Subject: [PATCH] tell the AI what dimension it died in hopefully this should help it not try to find its stuff in the nether in the otherworld. --- src/agent/agent.js | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/agent/agent.js b/src/agent/agent.js index cf79733..745c08f 100644 --- a/src/agent/agent.js +++ b/src/agent/agent.js @@ -266,8 +266,9 @@ export class Agent { if (death_pos) { death_pos_text = `x: ${death_pos.x.toFixed(2)}, y: ${death_pos.y.toFixed(2)}, z: ${death_pos.x.toFixed(2)}`; } + let dimention = this.bot.game.dimension; this.history.add('system', `You died at position ${death_pos_text || "unknown"} with the final message: '${message}'. Previous actions were stopped and you have since respawned.`); - this.handleMessage('system', `You died at position ${death_pos_text || "unknown"} with the final message: '${message}'. Previous actions were stopped and you have respawned. Notify the user and perform any necessary actions. use !goToDeath to return to death position. (this will automaticly take you to your death position and pick up your items)`); + this.handleMessage('system', `You died at position ${death_pos_text || "unknown"} in the dimention ${dimention} with the final message: '${message}'. Previous actions were stopped and you have respawned. Notify the user and perform any necessary actions. use !goToDeath to return to death position. (this will automaticly take you to your death position and pick up your items)`); } }); this.bot.on('idle', () => {