3picide Posted October 20, 2022 Share Posted October 20, 2022 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; } Quote Link to comment Share on other sites More sharing options...
Gunman Posted October 20, 2022 Share Posted October 20, 2022 @3picide Your player is animating when chopping so it breaks out of the sleep every single time 2 Quote Link to comment Share on other sites More sharing options...
ExtraBotz Posted October 20, 2022 Share Posted October 20, 2022 2 hours ago, 3picide said: 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; } You'll want to check this out: I also made a YouTube video about this a while back: 1 Quote Link to comment Share on other sites More sharing options...
FuryShark Posted October 20, 2022 Share Posted October 20, 2022 15 minutes ago, ExtraBotz said: You'll want to check this out: I also made a YouTube video about this a while back: can we get a part 2 pls Quote Link to comment Share on other sites More sharing options...
3picide Posted October 20, 2022 Author Share Posted October 20, 2022 8 hours ago, ExtraBotz said: You'll want to check this out: I also made a YouTube video about this a while back: 8 hours ago, Gunman said: @3picide Your player is animating when chopping so it breaks out of the sleep every single time Thanks guys, I really appreciate it! Quote Link to comment Share on other sites More sharing options...