ItsNoah

furnaceTimer

Jan 29th, 2022 (edited)
842
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Lua 0.56 KB | None | 0 0
  1. local s = true
  2. local burntime = 40
  3. local offset = 3
  4.  
  5. function wait( n )
  6.     local myTimer = os.startTimer(n)
  7.     while true do
  8.       local event, timerID = os.pullEvent("timer")
  9.       if timerID == myTimer then break end
  10.     end
  11. end
  12.  
  13. turtle.dropDown()
  14. turtle.suckDown()
  15. wait(burntime - 1)
  16. turtle.dropDown()
  17. wait(2)
  18.  
  19. while(true) do
  20.  
  21.     if s == true then
  22.         turtle.suckDown()
  23.         s = false
  24.         wait(burntime - offset)
  25.     else
  26.         turtle.dropDown()
  27.         s = true
  28.         wait(offset)
  29.     end
  30.  
  31. end
  32.  
  33. print("Should see this...")
Add Comment
Please, Sign In to add comment