Han Posted August 4, 2016 Posted August 4, 2016 Does anyone know how many milliseconds it takes to start a fire at the beginning of an inventory? Need to know asap
Explv Posted August 4, 2016 Posted August 4, 2016 (edited) 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, 2016 by Explv 1
FrostBug Posted August 5, 2016 Posted August 5, 2016 Pretty sure the first one is random. After that it's 1 tick per log (or 2, not sure)