xxangel17xx

turtleRednet

Mar 11th, 2014
95
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Lua 0.86 KB | None | 0 0
  1. rednet.open("right")
  2.  
  3. while true do
  4.   id,message = rednet.receive()
  5.   if id == 1 then
  6.     if message == "left" then
  7.       turtle.turnLeft()
  8.     end
  9.  
  10.     if message == "right" then
  11.       turtle.turnRight()
  12.     end
  13.  
  14.     if message == "up" then
  15.       turtle.up()
  16.     end
  17.  
  18.     if message == "down" then
  19.       turtle.down()
  20.     end
  21.  
  22.     if message == "forward" then
  23.       turtle.forward()
  24.     end
  25.  
  26.     if message == "back" then
  27.       turtle.back()
  28.     end
  29.  
  30.     if message == "place" then
  31.       turtle.place()
  32.     end
  33.  
  34.     if message == "placeDown" then
  35.       turtle.placeDown()
  36.     end
  37.  
  38.     if message == "placeUp" then
  39.       turtle.placeUp()
  40.     end
  41.  
  42.     if message == "dig" then
  43.       turtle.dig()
  44.     end
  45.  
  46.     if message == "digDown" then
  47.       turtle.digDown()
  48.     end
  49.  
  50.     if message == "digUp" then
  51.       turtle.dig()
  52.     end
Advertisement
Add Comment
Please, Sign In to add comment