Advertisement
Kengu

Untitled

Dec 8th, 2019
119
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.78 KB | None | 0 0
  1. run = true
  2. x = 0
  3.  
  4. while true do
  5. if turtle.detectDown() and x == 0 then
  6. turtle.up()
  7. turtle.select(2)
  8. x = x + 1
  9. elseif x < 5 then
  10. turtle.placeDown()
  11. turtle.forward()
  12. x = x + 1
  13. elseif x == 5 then
  14. turtle.turnRight()
  15. turtle.forward()
  16. elseif x >= 5 and x < 9 then
  17. turtle.placeDown()
  18. turtle.forward()
  19. x = x + 1
  20. elseif x == 9 then
  21. turtle.turnRight()
  22. turtle.forward()
  23. elseif x >= 9 and x < 13 then
  24. turtle.placeDown()
  25. turtle.forward()
  26. x = x + 1
  27. elseif x == 13 then
  28. turtle.turnRight()
  29. turtle.forward()
  30. elseif x >= 13 and x < 17 then
  31. turtle.placedown()
  32. turtle.forward()
  33. x = x + 1
  34. elseif x == 16 then
  35. print("Build should be finished")
  36. run = false
  37. else
  38. print("ERROR")
  39. run = false
  40. end
  41.  
  42. end
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement