Advertisement
ecco7777

fernsteuerbare chat turtle

May 1st, 2015
271
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1.     rednet.open("right")
  2.     c=peripheral.wrap("right")
  3.     while true do
  4.     x,y,z=rednet.receive()
  5.  
  6.     if y=="Forward" then
  7.     turtle.forward()
  8.     end
  9.  
  10.     if y=="Back" then
  11.     turtle.back()
  12.     end
  13.  
  14.     if y=="Left" then
  15.     turtle.turnLeft()
  16.     end
  17.  
  18.     if y=="Right" then
  19.     turtle.turnRight()
  20.     end
  21.  
  22.     if y=="Up" then
  23.     turtle.up()
  24.     end
  25.  
  26.     if y=="Down" then
  27.     turtle.down()
  28.     end
  29.  
  30.     if y=="Dig" then
  31.     turtle.dig()
  32.     end
  33.  
  34.     if y=="Place" then
  35.     turtle.place()
  36.     end
  37.    
  38.     if y=="Chat" then
  39.     x,y,z=rednet.receive()
  40.     print(y)
  41.     c.say(y)
  42.     end
  43.  
  44.     sleep(0.2)
  45.     end
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement