michaelzangl / minebot

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

I have minebot mining #234

Open Logic6497 opened 6 years ago

Logic6497 commented 6 years ago

How do I get it to do /back on death (Sorry for the basic questions really trying to learn about this thing) Thanks!

michaelzangl commented 6 years ago

Do a `/minebot stop on death``(or similar, don't remember the exact command) in a stack of commands (must be above the other commands)

nightscloud2 commented 6 years ago

Easy.

if (!minescript.isAlive()) { minescript.doStrategy(minescript.strategy("minebot", "respawn")); pause(1); minescript.serverCommand("/back"); }

This can also be done with a simple script but i would have to test it. Not sure if /minebot respawn works outside of the javascript api. maybe use /minebot stop on death stacked with /minebot respawn then /back.