Illprotectjew

Trimmer

Oct 27th, 2013
157
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Lua 0.52 KB | None | 0 0
  1. rednet.open("right")
  2. t = turtle
  3. m = peripheral.wrap("left")
  4.  
  5. function run()
  6.  while true do
  7.   term.clear()
  8.     print("Rednet active! Waiting for message...")
  9.   id, message = rednet.receive()
  10.   sleep(0.1)
  11. print("GOT IT!")
  12.   startProgram(message)
  13.  end
  14. end
  15.  
  16. function startProgram()
  17.  if input == "clear" then
  18.     for i = 1,16 do
  19.       rs.setOutput("bottom", true)
  20.     os.sleep(0.2)
  21.     rs.setOutput("bottom", false)
  22.       m.dropDown(6,1)
  23.     end
  24.  os.sleep(1)
  25. print ("done")
  26.   end
  27.   return
  28. end
  29.  
  30. while true do
  31.   run()
  32. end
Advertisement
Add Comment
Please, Sign In to add comment