Replies: 4 comments 4 replies
-
You can't (at least that I know of) :P |
Beta Was this translation helpful? Give feedback.
-
I suggest this: bot.on('entityGone', async (entity) => {
if (entity === bot.username) {
// when the bot dies
bot.quit()
// quit the game
}
})
bot.on('end', createBot)
createBot() You will need to move your bot spawning constant to a function first. |
Beta Was this translation helpful? Give feedback.
-
The previous code is comparing an Entity instance with a string. I think there was a PR that disabled automatic respawn, but it hasn't had any activity in a while, you could look at it and perhaps fix the PR. |
Beta Was this translation helpful? Give feedback.
-
I see few people here, maybe I need to create an issue with a request so that there are more people |
Beta Was this translation helpful? Give feedback.
-
Server has anti-cheat that prevent respawning in 2 sec after death
How to respawn bot manually?
Beta Was this translation helpful? Give feedback.
All reactions