Tasemu Posted September 14, 2018 Posted September 14, 2018 Hi, i have tried using a few methods to determine if my bot is fighting a cow, running to hit a cow or is under attack and the results seem sketchy at best. I am currently using an expression like this: if (myPlayer().isAnimating() || myPlayer().isUnderAttack() || myPlayer().isHitBarVisible()) { return States.WAIT; } Is there a more generally accepted way to do this out there? Thanks in advance for any advice.
urmom Posted September 14, 2018 Posted September 14, 2018 try if(myPlayer.isInteracting(cow) || myPlayer.isUnderAttack()){ return State.Wait; } and sleep while the hitbar of a cow is not 0