- Thread Author
- #1
So i have this little mining script which supposed to hop worlds if there is no rocks available. At the start everything is ok it mines all rocks and when there is no rocks left it hops world. And here the problem starts. It doesnt do anything, the script is still runing but account just idle. Its a LoopingBot so its supposed to start from begining again right?
Code:
public void onLoop() {
if (!Inventory.isFull() && isInMine()) { // Mining
if (ore != null && isIdle() && ore.isVisible()) {
if (ore.interact("Mine"))
Execution.delayUntil(() -> player.getAnimationId() != -1, 3000, 6000);
} else if (ore != null && !ore.isVisible()) {
Camera.concurrentlyTurnTo(ore);
} else if (isIdle()) {
Random random = new Random();
WorldHop.hopTo(worlds[random.nextInt(worlds.length)]);
}
}
}