Advertisement
Mr_Affi

TurtleProgram

Jan 29th, 2015
176
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.64 KB | None | 0 0
  1. shell.run("clear")
  2. shell.run("r-lan")
  3. print("Turtle wird ferngesteuert")
  4. repeat
  5. m,i,s=rednet.receive()
  6. if i=="w" then
  7. turtle.forward()
  8. end
  9. if i=="s" then
  10. turtle.back()
  11. end
  12. if i=="a" then
  13. turtle.turnLeft()
  14. end
  15. if i=="d" then
  16. turtle.turnRight()
  17. end
  18. if i=="r" then
  19. turtle.up()
  20. end
  21. if i=="f" then
  22. turtle.down()
  23. end
  24. if i=="1" then
  25. turtle.placeUp()
  26. end
  27. if i=="2" then
  28. turtle.place()
  29. end
  30. if i=="3" then
  31. turtle.placeDown()
  32. end
  33. if i=="4" then
  34. turtle.digUp()
  35. end
  36. if i=="5" then
  37. turtle.dig()
  38. end
  39. if i=="6" then
  40. turtle.digDown()
  41. end
  42. until i=="q"
  43. shell.run("clear")
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement