How to make bot with login and click the compass and next item in opened gui? #2296
Unanswered
ThePolishCat
asked this question in
Q&A
Replies: 1 comment
-
bot spawn with compass in hand? bot.on('spawn', async () => {
console.log("spawn!")
if(bot.heldItem == null) return
if(bot.heldItem.type == 795 && bot.heldItem.nbt.value.display.value.Name.value.includes("INSERT COMPASS NAME"))
{
console.log("im in hub")
while(bot.heldItem.type == 795){
bot.activateItem();
await sleep(1000);
bot.on('windowOpen', (window) => {
if(window.title.includes("INSERT COMPASS TITLE")){
bot.clickWindow(15,0,0) //insert here container with next item in GUI
}
else {
return
}
console.log("done!")
})
}
return
} |
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
How to make bot with login and click the compass and next item in opened gui?
Beta Was this translation helpful? Give feedback.
All reactions