Advertisement
Mr_jack

remote

Aug 9th, 2015
207
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Lua 0.46 KB | None | 0 0
  1. print("You id: ",os.computerID())
  2. write"Turtle id: "
  3. id = read()
  4. id = tonumber(id)
  5. term.clear()
  6. term.setCursorPos(1,1)
  7. print(os.computerID()," --> ",id)
  8. sleep(2)
  9. term.clear()
  10. term.setCursorPos(1,1)
  11. local function clear()
  12. term.clear()
  13. term.setCursorPos(1,1)
  14. end
  15. while true do
  16. clear()
  17. print(os.computerID()," --> ",id)
  18. print("--------------------------")
  19. term.setCursorPos(1,3)
  20. print"Enter a command to turtle:"
  21. com = read()
  22. rednet.send(id,com)
  23. end
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement