Closed amoraschi closed 3 years ago
Idk how that is possible but ig I will try the example code myself and see
I didn't have any errors
also it worked fine for me when I tested it so I don't know what the issue is
maybe you can show me some errors if you have any
Using the example
I don't see where the issue is the bot doesn't eat when its low on health only when low on hunger
On the example script, if bot.food is equal to 20(full) it disables the plugin. But if else, it enables it. When regenerating health, food decreases, so it should activate the plugin.
Never mind I'm stupid, I didn't look at the startAt option
E:\[bot folder]\node_modules\mineflayer-auto-eat\index.js:90
callback(null)
^
TypeError: callback is not a function
at Immediate.<anonymous> (E:\Node Bots\Temp\node_modules\mineflayer-auto-eat\index.js:90:25)
at processImmediate (internal/timers.js:458:21
Ok so when it finishes eating, it crashes with this error
oh yeah I can fix that
Thx
it requires a callback but I forgot to change my code to use the callback as well
I am now having this same error. My alt just stays there and doesn't eat and in the terminal it says "Auto eat enabled" and then immediately says "Auto eat disabled". This is my code. https://pastebin.com/kNHfYY1e
Will look into it later today
Package is completely broken, bot doesn't eat. Even with the example it just stays there