Spirit13300

turtle remote (turtle) v0.0.1

Feb 2nd, 2017
363
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Lua 0.39 KB | None | 0 0
  1. rednet.open("right")
  2. while true do
  3. event , id , text = os.pullEvent()
  4.  
  5.     if text=="1" then
  6.         turtle.up()
  7.     end
  8.     if text=="0" then
  9.         turtle.down()
  10.     end
  11.     if text=="2" then
  12.         turtle.turnLeft()
  13.     end
  14.     if text=="3" then
  15.         turtle.turnRight()
  16.     end
  17.     if text=="10" then
  18.         turtle.forward()
  19.     end
  20.     if text=="11" then
  21.         turtle.dig()
  22.     end
  23.     if text=="12" then
  24.         turtle.place()
  25.     end
  26. end
Add Comment
Please, Sign In to add comment