August 4, 20169 yr Does anyone know how many milliseconds it takes to start a fire at the beginning of an inventory? Need to know asap
August 4, 20169 yr Why would you need to know that? I'm assuming you want to know how long to sleep for, if not, disregard this: The simplest way to sleep until a fire is lit, is to sleep until the player's position has changed. The player always moves after lighting a fire, so you can just do something like: Position currentPos = S.myPosition(); if(S.getInventory().getItem("Logs").interact()) { new ConditionalSleep(15_000) { @ Override public boolean condition() throws InterruptedException { return !S.myPosition().equals(currentPos) && !S.myPlayer().isMoving(); } }.sleep(); } Edited August 4, 20169 yr by Explv
August 5, 20169 yr Pretty sure the first one is random. After that it's 1 tick per log (or 2, not sure)
Create an account or sign in to comment