about summary refs log tree commit diff
diff options
context:
space:
mode:
-rw-r--r--src/main.ts4
1 files changed, 4 insertions, 0 deletions
diff --git a/src/main.ts b/src/main.ts
index 226fa74..2a9d3fb 100644
--- a/src/main.ts
+++ b/src/main.ts
@@ -76,6 +76,10 @@ bot.once('spawn', async () => {
   }, 2000);
 })
 
+bot.on('goal_reached', async () => {
+  sendMessageToChannel(`Reached goal (${goal}) with ${bot.username}\n\tCoords: ${bot.entity?.position}\n\tDim: ${bot.game.dimension}\n\tHP: ${bot.health}`)
+})
+
 bot.on('entityMoved', async (entity: any) => {
   if (entity.player === null || entity.username === undefined) return
   if (entity.username === bot.username) return