Advertisement
Vera_Lapsa

Miner Control Computer startup

Nov 28th, 2014
56
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. local sleeptime = 3
  2.  
  3. rs.setOutput("bottom",true)
  4.  
  5. print("sleeping")
  6. sleep(sleeptime)
  7. print("activate puller")
  8. rs.setOutput("right",true)
  9. while(rs.getInput("top")) do
  10.   print("while wait")
  11.   rs.setOutput("bottom",false)
  12.   sleep(5)
  13. end
  14. while(true) do
  15.   rs.setOutput("bottom",true)
  16.   sleep(4)
  17.   rs.setOutput("right",false)
  18.   print("activate pusher")
  19.   rs.setOutput("left",true)
  20. end
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement