Advertisement
Kengu

Untitled

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