MagmaLP

Wireless Turtle Turtle

Nov 20th, 2020
116
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. while true do
  2. rednet.open("right")
  3.  
  4. x,y,z = rednet.receive()
  5.  
  6. print(y)
  7.  
  8. if y == "f" then
  9. turtle.dig()
  10. turtle.forward()
  11. end
  12. if y == "b" then
  13. turtle.back()
  14. end
  15. if y == "r" then
  16. turtle.turnRight()
  17. turtle.dig()
  18. turtle.forward()
  19. turtle.turnLeft()
  20. end
  21. if y == "l" then
  22. turtle.turnLeft()
  23. turtle.dig()
  24. turtle.forward()
  25. turtle.turnRight()
  26. end
  27. if y == "p" then
  28. turtle.select(1)
  29. turtle.placeDown()
  30. turtle.forward()
  31. end
  32. if y == "u" then
  33. turtle.digUp()
  34. turtle.up()
  35. end
  36. if y == "d" then
  37. turtle.digDown()
  38. turtle.down()
  39. end
  40. end
Add Comment
Please, Sign In to add comment