michaelzangl / minebot

Minebot
GNU General Public License v3.0
144 stars 48 forks source link

Restart bot if it is stuck #190

Open ali6836 opened 7 years ago

ali6836 commented 7 years ago

If you made it so that every 5 seconds the script would start again, errors wouldn't happen. Sometimes my player just keeps jumping thinking that it placed a block but it didn't, so I do /minebot mine again to fix it. If it did /minebot mine every few seconds, errors wouldn't occur.

michaelzangl commented 7 years ago

Mining always looks 5 seconds into the future and has a lot of internal state (positions that were visited, ratings, ...). For mining this is pretty simple, for e.g. tunneling this is much harder.

I am planing to add a watchdog timer that aborts if the bot does not make any useful progress for some time.