Advertisement
Guest User

RC Turtle Server

a guest
Aug 1st, 2014
234
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("left")
  2. print("This turtle is under my control!")
  3. while true do
  4.   if rednet.receive()=="forward" then
  5.     turtle.forward()
  6.   end
  7.   if rednet.receive()=="left" then
  8.     turtle.turnLeft()
  9.   end
  10.   if rednet.receive()=="back" then
  11.     turtle.back()
  12.   end
  13.   if rednet.receive()=="right" then
  14.     turtle.turnRight()
  15.   end
  16.   if rednet.receive()=="up" then
  17.     turtle.up()
  18.   end
  19.   if rednet.receive()=="down" then
  20.     turtle.down()
  21.   end
  22. end
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement