Guest User

startup

a guest
Mar 30th, 2014
73
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Lua 0.46 KB | None | 0 0
  1. rednet.open("right")
  2.  
  3. --Monitor Setup:
  4.  
  5. monitor = peripheral.wrap("top")
  6. monitor.setCursorPos(2,2)
  7. monitor.setTextScale(1.5)
  8. monitor.write("OFF")
  9.  
  10. --Self-Setup:
  11.  
  12. shell.run("clear")
  13. print("Farm Collection: Waiting")
  14.  
  15. --Waiting to Work
  16.  
  17. a,b = rednet.receive()
  18. if a == 4 and b == "work" then
  19.   print("Hooray, it's time to work!")
  20.   os.sleep(2)
  21.   monitor.clear()
  22.   monitor.setCursorPos(2,2)
  23.   shell.run('auto')
  24. else
  25.   os.sleep(1)
  26.   os.reboot()
  27. end
Advertisement
Add Comment
Please, Sign In to add comment