link-discord / mineflayer-auto-eat

Auto eat plugin for mineflayer
https://www.npmjs.com/package/mineflayer-auto-eat
MIT License
33 stars 4 forks source link

Does not work :( #3

Closed amoraschi closed 3 years ago

amoraschi commented 3 years ago

Package is completely broken, bot doesn't eat. Even with the example it just stays there

link-discord commented 3 years ago

Idk how that is possible but ig I will try the example code myself and see

link-discord commented 3 years ago

I didn't have any errors

link-discord commented 3 years ago

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

amoraschi commented 3 years ago

https://imgur.com/a/wPwE837

Using the example

link-discord commented 3 years ago

I don't see where the issue is the bot doesn't eat when its low on health only when low on hunger

amoraschi commented 3 years ago

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.

amoraschi commented 3 years ago

Never mind I'm stupid, I didn't look at the startAt option

amoraschi commented 3 years ago
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

link-discord commented 3 years ago

oh yeah I can fix that

amoraschi commented 3 years ago

Thx

link-discord commented 3 years ago

it requires a callback but I forgot to change my code to use the callback as well

OctodevGITHUB commented 2 years ago

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

link-discord commented 2 years ago

Will look into it later today