Advertisement
ecco7777

Fernsteuerbare map turtle

Apr 16th, 2015
285
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1.     rednet.open("right")
  2.         id=9163
  3.     while true do
  4.     id,y,z=rednet.receive()
  5.  
  6.     if y=="Forward" then
  7.     if turtle.detect()==false then
  8.     turtle.forward()
  9.     sleep(0.5)
  10.         rednet.send(id,"Forward")
  11.     end
  12.     end
  13.  
  14.     if y=="Back" then
  15.     turtle.back()
  16.     sleep(0.5)
  17.     rednet.send(id,"Back")
  18.     end
  19.  
  20.     if y=="Left" then
  21.     turtle.turnLeft()
  22.     sleep(0.5)
  23.     rednet.send(id,"Left")
  24.     end
  25.  
  26.     if y=="Right" then
  27.     turtle.turnRight()
  28.     sleep(0.5)
  29.     rednet.send(id,"Right")
  30.     end
  31.  
  32.     if y=="Up" then
  33.     turtle.up()
  34.     sleep(0.5)
  35.     rednet.send(id,"Up")
  36.     end
  37.  
  38.     if y=="Down" then
  39.     turtle.down()
  40.     sleep(0.5)
  41.     rednet.send(id,"Down")
  42.     end
  43.  
  44.     if y=="Dig" then
  45.     turtle.dig()
  46.     end
  47.  
  48.     if y=="Place" then
  49.     turtle.place()
  50.     end
  51.  
  52.     if turtle.detect()==true then
  53.         rednet.send(id,"blocked")
  54.         else
  55.  
  56.     sleep(0.2)
  57.     end
  58.     end
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement