Advertisement
djgaven588

Remote Turtle Control - Turtle

Feb 24th, 2018
92
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Lua 0.35 KB | None | 0 0
  1. rednet.open("left")
  2. controllerId = 0
  3.  
  4. function ClearScreen()
  5.     term.clear()
  6.     term.SetCursorPos(1,1)
  7. end
  8.  
  9. ClearScreen()
  10. print("Ready for Commands!")
  11.  
  12. while true do
  13.     sentBy, message, protocall = rednet.receive()
  14.     if(sentBy == controllerId) then
  15.         loadstring(message)()
  16.         print("Executing command "..message)
  17.     end
  18. end
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement