michaelzangl / minebot

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

Minebot doesn't account for ores that respawn #146

Open Fogest opened 7 years ago

Fogest commented 7 years ago

Sometimes an ore respawns. Whether this be due to lag on a server causing a block to reappear or a server which has regenerating ores, the bot seems to assume it is mining the next block behind an ore rather than a new ore. See the gif below.

https://i.jhvisser.com/vf7m.gif

I understand it may not be possible to program it to work as it seems like the way these server works just swaps the block rather than breaking it meaning it may be hard for minebot to detect unless it is rechecking the block type periodically. Would it be possible to script this?

If I refire /minebot mine it does start running again and go to the next ore. So it looks like it's possible, it just looks really choppy this way. Is it possible to at least script this nicely? I tried the following but had no success:

repeat:
/minebot mine
/minebot pause 3
/minebot stop