Advertisement
Shaka01

furnace engine

Jan 29th, 2023 (edited)
898
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Lua 0.43 KB | None | 0 0
  1. function detectLit()
  2.         local success, data = turtle.inspectDown()
  3.         if success then
  4.             if data.state.lit then
  5.                 return true
  6.             else
  7.                 return false
  8.             end
  9.         end
  10.     end
  11.    
  12.  
  13. function stoke()
  14.     turtle.dropDown()
  15.     sleep(0.5)
  16.     turtle.suckDown()
  17. end
  18.  
  19.  
  20. while true do
  21.     if detectLit() == false then
  22.         stoke()
  23.     end
  24.     sleep(0.5)
  25. end
  26.  
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement