Advertisement
Guest User

startup

a guest
Aug 23rd, 2014
261
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Lua 0.34 KB | None | 0 0
  1. rednet.open("right")
  2.  
  3. print("My ears are open.")
  4.  
  5. local id, msg, proto = rednet.receive()
  6.  
  7. if msg == "open" then
  8.   for x=4,1,-1 do
  9.     peripheral.call("back","move",0,false,true)
  10.     sleep(1.5)
  11.   end
  12. end
  13.  
  14. if msg == "close" then
  15.   for y=4,1,-1 do
  16.     peripheral.call("back","move",1,false,true)
  17.     sleep(1.5)
  18.   end
  19. end
  20.  
  21. os.reboot()
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement