Advertisement
luckdemon

WirelessMassControlSlaveV2

Jun 7th, 2013
61
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Lua 0.38 KB | None | 0 0
  1. local function clear()
  2.     term.clear()
  3.     term.setCursorPos(1,1)
  4.     end
  5. clear()
  6. print("Automatic Mass Turtle Control")
  7. print("wireless edition")
  8. print("")
  9. print("")
  10. rednet.open("right")
  11.  
  12. function main()
  13. while true do
  14.     clear()
  15.     print("waiting to receive shell commands")
  16.     local id, msg, dist = rednet.receive()
  17.     shell.run(msg)
  18.     sleep(0.5)
  19. end
  20. end
  21.  
  22. main()
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement