BloodyNoah Posted August 7, 2021 Posted August 7, 2021 (edited) Chops normal trees and drops the logs, you need to have a axe equipped or in the inventory. This is my first script so please dont expect anything good. Please report any bugs to me. DOWNLOAD: https://github.com/BloodyNoah/Bloody-powerchopper SOURCE: https://github.com/BloodyNoah/BloodyTreeChopperSource Edited August 7, 2021 by BloodyNoah
PICwarior381 Posted August 7, 2021 Posted August 7, 2021 Would be great if you included the sources so we can give you advices and help you
BloodyNoah Posted August 7, 2021 Author Posted August 7, 2021 2 minutes ago, PICwarior381 said: Would be great if you included the sources so we can give you advices and help you Sure I am going to upload the source
BloodyNoah Posted August 7, 2021 Author Posted August 7, 2021 12 minutes ago, PICwarior381 said: Would be great if you included the sources so we can give you advices and help you Had some troubles with intellij so it has a own repo now:https://github.com/BloodyNoah/BloodyTreeChopperSource
skillerkidos1 Posted August 7, 2021 Posted August 7, 2021 (edited) Looks good but you might want to add some conditional sleeps for cutting the tree, otherwise it looks like its going to keep randomly clicking on the tree even if its still chopping it down. something like else if(tree != null && !myPlayer().isAnimating()){ log("Chopping..."); if(tree.interact("Chop down")){ new ConditionalSleep(10000, 600) { @Override public boolean condition() throws InterruptedException { return !myPlayer().isAnimating() && !myPlayer().isMoving() && !tree.exists(); } }.sleep(); } } Edited August 7, 2021 by skillerkidos1
BloodyNoah Posted August 7, 2021 Author Posted August 7, 2021 56 minutes ago, skillerkidos1 said: Looks good but you might want to add some conditional sleeps for cutting the tree, otherwise it looks like its going to keep randomly clicking on the tree even if its still chopping it down. something like else if(tree != null && !myPlayer().isAnimating()){ log("Chopping..."); if(tree.interact("Chop down")){ new ConditionalSleep(10000, 600) { @Override public boolean condition() throws InterruptedException { return !myPlayer().isAnimating() && !myPlayer().isMoving() && !tree.exists(); } }.sleep(); } } if(getInventory().dropAll("logs")){ new ConditionalSleep(10000, 600) { @Override public boolean condition() throws InterruptedException { return !getInventory().contains("logs"); } }.sleep(); } Yeah I saw that but I couldnt find out how to create them, thank you very much for your help 57 minutes ago, skillerkidos1 said: Looks good but you might want to add some conditional sleeps for cutting the tree, otherwise it looks like its going to keep randomly clicking on the tree even if its still chopping it down. something like else if(tree != null && !myPlayer().isAnimating()){ log("Chopping..."); if(tree.interact("Chop down")){ new ConditionalSleep(10000, 600) { @Override public boolean condition() throws InterruptedException { return !myPlayer().isAnimating() && !myPlayer().isMoving() && !tree.exists(); } }.sleep(); } } if(getInventory().dropAll("logs")){ new ConditionalSleep(10000, 600) { @Override public boolean condition() throws InterruptedException { return !getInventory().contains("logs"); } }.sleep(); } So you type in the bigger value first and the lower as 2nd? kinda weird but thank you.
skillerkidos1 Posted August 7, 2021 Posted August 7, 2021 1 hour ago, BloodyNoah said: Yeah I saw that but I couldnt find out how to create them, thank you very much for your help So you type in the bigger value first and the lower as 2nd? kinda weird but thank you. first number is max time to sleep before waking up, 2nd number is how often it checks so 600 is every game tick 1
FuryShark Posted August 7, 2021 Posted August 7, 2021 This guide includes how to do interactions and conditional sleeps correctly
BloodyNoah Posted August 7, 2021 Author Posted August 7, 2021 2 hours ago, FuryShark said: This guide includes how to do interactions and conditional sleeps correctly Nice Thanks didnt thought scripters would be that nice to new onces. Cause thats like more competition. But thanks to everyone who helped