Advertisement
Guest User

modem

a guest
May 29th, 2015
235
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Lua 0.61 KB | None | 0 0
  1. rednet.open("right")
  2.  
  3. while true do
  4.   id,message = rednet.receive()
  5.   if id == 23 then
  6.       if message == "left" then
  7.       turtle.turnLeft()
  8.     end
  9.       if message == "right" then
  10.       turtle.turnRight()
  11.     end
  12.       if message == "up" then
  13.       turtle.up()
  14.     end
  15.       if message == "down" then
  16.       turtle.down()
  17.     end
  18.       if message == "forward" then
  19.       turtle.forward()
  20.     end
  21.       if message == "back" then
  22.       turtle.back()
  23.     end
  24.       if message == "place" then
  25.       turtle.placeDown()
  26.     end
  27.       if message == "dig" then
  28.       turtle.dig()
  29.     end
  30.   end
  31. end
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement