Advertisement
Guest User

Untitled

a guest
Oct 7th, 2015
103
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. local length = 30
  2. local rows = 5
  3. local count = length
  4.  
  5. turtle.refuel()
  6. turtle.digUp()
  7. turtle.dig()
  8. turtle.digDown()
  9. turtle.up() --omhoog
  10.  
  11. while rows > 0 do
  12. print("Starting row")
  13. count = length
  14. while count > 0 do
  15. turtle.digUp()
  16. turtle.digDown()
  17. turtle.dig()
  18. turtle.forward()
  19. count = count - 1
  20. end
  21.  
  22. print("Turn around 180")
  23. count = length + 1
  24. turtle.turnRight()
  25. turtle.turnRight()
  26.  
  27. print("Return to begin.")
  28. while count > 0 do
  29. turtle.forward()
  30. count = count - 1
  31. end
  32.  
  33. print("Move to next Row")
  34. turtle.turnLeft()
  35. turtle.forward()
  36. turtle.forward()
  37. turtle.forward()
  38. turtle.turnLeft()
  39. rows = rows - 1
  40. end
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement