I'm just following Explv's introduction for making a simple woodcutting bot.
I'm following exactly what he's doing, but my bot is still spamming an entity when it's interacting with it.
I assume it's outdated, or maybe I'm missing something here. If someone could help me, that would be great, thanks!
onLoop method:
@Override
public int onLoop() throws InterruptedException {
Entity tree = getObjects().closest("Tree");
if (tree != null && tree.interact("Chop down")) {
new ConditionalSleep(5000) {
@Override
public boolean condition() {
return myPlayer().isAnimating() || !tree.exists();
}
}.sleep();
}
return 0;
}