GameObject obj = GameObjects.closest("obj");
//logic and things
otherObj.interact("otherObj");
Magic.castSpell(Normal.teleport);
Sleep.sleepUntil(() -> obj != null, 12000);
//logic and things
This is my code however its pretty slow detecting the object, is there a way to optimize this?
Sleep.sleepUntil(() -> bank.exists() == true, 12000);
for some reason this always returns True, I'm out of ideas
also tried doing the distance math, and sleeping ticks until we've theoretically loaded a bank; this would force me to do run energy handling and i cba for a script this simple (my first time for scripting and java)