Advertisement
Guest User

RC Turtle Server

a guest
Aug 1st, 2014
4
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. rednet.open("left")
  2. print("This turtle is under my control!")
  3. while true do
  4.   id, msg = rednet.receive()
  5.   if msg == "w" then
  6.     turtle.forward()
  7.   end
  8.   if msg == "a" then
  9.     turtle.turnLeft()
  10.   end
  11.   if msg == "s" then
  12.     turtle.back()
  13.   end
  14.   if msg == "d" then
  15.     turtle.turnRight()
  16.   end
  17.   if msg == "e" then
  18.     turtle.up()
  19.   end
  20.   if msg == "q" then
  21.     turtle.down()
  22.   end
  23. end
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement