Advertisement
Guest User

fill

a guest
Jan 30th, 2015
201
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Lua 0.30 KB | None | 0 0
  1. local t = 2
  2.  
  3. ---fill power back
  4. print("Filling now")
  5.  
  6. function fill()
  7. --while true do
  8. --if rs.getInput("left") == true then
  9. os.pullEvent("redstone")  
  10.   rs.setOutput("back", true)
  11.   sleep(t)
  12.   rs.setOutput("back", false)
  13.   print("fully filled!")
  14.   sleep(5)
  15.  -- end
  16.  end
  17.  
  18.  
  19. fill()
  20.  
  21. os.reboot()
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement