Advertisement
100Toby1

Untitled

Apr 25th, 2017
86
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.84 KB | None | 0 0
  1. local height = 20
  2. local width = 6
  3.  
  4. function placeRing()
  5. turtle.up()
  6. local loops = width
  7. while loops > 0 do
  8. turtle.forward()
  9. turtle.placeDown()
  10. loops = loops - 1
  11. end
  12. turtle.forward()
  13. turtle.turnRight()
  14. local loops = width
  15. while loops > 0 do
  16. turtle.forward()
  17. turtle.placeDown()
  18. loops = loops - 1
  19. end
  20. turtle.forward()
  21. turtle.turnRight()
  22. local loops = width
  23. while loops > 0 do
  24. turtle.forward()
  25. turtle.placeDown()
  26. loops = loops - 1
  27. end
  28. turtle.forward()
  29. turtle.turnRight()
  30. local loops = width
  31. while loops > 0 do
  32. turtle.forward()
  33. turtle.placeDown()
  34. loops = loops - 1
  35. end
  36. turtle.forward()
  37. turtle.turnRight()
  38. end
  39.  
  40. function buildBase()
  41. local curheight = 0
  42. while curheight < baseheight do
  43. placeRing()
  44. end
  45. end
  46.  
  47. buildBase()
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement