michaelzangl / minebot

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

Not using swords (XpFarm) #279

Open Pedro9700 opened 5 years ago

Pedro9700 commented 5 years ago

I am currently using this script:

# Mine and bring the resulting ores home. Then mine again.
repeat:
# Just in case we died
/minebot respawn

# Store the stuff
/mobcoins withdraw 20
/home a
/minebot pause 7
/minebot store
/minebot pause 15
/is go
/minebot pause 7

stack:
/minebot stop after 300
/minebot stop on death
/minebot xpfarm 10000
stack end

And its working well, exept the fact that the bot is not switching swords, even when he has swords in his hotbar, we wont use them Any solution for this?

xpr0legendx commented 5 years ago

Check which slot has the sword in it, if it's on the hotbar, select that slot. You can either do it in js or Java, your choice.