Closed AsherJingkongChen closed 2 years ago
I think this can be avoided by awaiting bot.attack
@amoraschi How to asynchronize attack() ? Could you share the idea?
await bot.attack Also these questions are answered faster in Discord
Video : Crashing moment Video : It was idle for a moment and going on It always ended without cautions or error messages.
Can you add a bot.on('error', console.log)
to your code?
Closeable?
@aesthetic0001 At that time, I had found the error caused by bad network connection...
Versions
Code preview
What did I try yet?
mineflayer/plugins/entities.js
function attack(target, swing=true)
bot.entities
Expected behavior
call
hit()
=> { check each entity in bot.entities and attack any checked entity } sleep(250) (...behaving like multiAura in Wurst7?)Problem
Working nice for a few minutes and suddenly kicked out by unknown reason. Video : Crashing moment Video : It was idle for a moment and going on It always ended without cautions or error messages.