Hello guys,
Im trying to get back into scripting and my first project is a pizza base maker but im trying to add conditionalSleep
but i can get it to work.
if (new ConditionalSleep(1200)
{
public boolean condition()
throws InterruptedException
{
return Main.this.myPlayer().isAnimating();
}
}.sleep()) {
}
}
The problem is when i make a pizza base my player isnt Animating.
(this.inventory.getAmount(new String[] { "Pizza base" }) == 9)
Ive also treid to work with the amount in inventory but still cant figure it out.
some help would be great ;)