Advertisement
Guest User

Untitled

a guest
Jan 22nd, 2017
117
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.98 KB | None | 0 0
  1. --start road lel
  2. active_slot=1
  3. turtle.turnRight()
  4. function gap(length)
  5. x=0
  6. while x<length
  7. do
  8. x=x+1
  9. turtle.forward()
  10. end
  11. end
  12. gap(12)
  13. turtle.turnLeft()
  14. turtle.forward()
  15. function road(length2)
  16. x=0
  17. blocks=0
  18. while x<length2
  19. do
  20. x=x+1
  21. turtle.select(active_slot)
  22. turtle.placeDown()
  23. turtle.forward()
  24. blocks=blocks+1
  25. end
  26. if blocks>>32 then
  27. blocks = 0
  28. active_slot=active_slot+1
  29. end
  30. end
  31. function wide_road(width)
  32. local rows = width/2
  33. y=0
  34. while y<rows
  35. do
  36. road(64)
  37. turtle.turnRight()
  38. turtle.forward()
  39. turtle.turnRight()
  40. road(64)
  41. turtle.turnLeft()
  42. turtle.forward()
  43. turtle.turnLeft()
  44. end
  45. end
  46. wide_road(4)
  47. turtle.turnRight()
  48. gap(12)
  49. wide_road(4)
  50. turtle.turnRight()
  51. gap(12)
  52. wide_road(4)
  53. turtle.turnRight()
  54. gap(12)
  55. wide_road(4)
  56. turtle.turnLeft()
  57. gap(64)
  58. turtle.turnLeft()
  59. function Resupply()
  60. while active_slot>1
  61. do
  62. active_slot=active_slot-1
  63. turtle.select(active_slot)
  64. turtle.suck(64)
  65. end
  66. end
  67. turtle.Resupply()
  68. turtle.turnRight()
  69. turtle.turnRight()
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement