Kengu

Untitled

Dec 8th, 2019
119
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.69 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. elseif x >= 4 and x < 8 then
  15. turtle.forward()
  16. turtle.placeDown()
  17. x = x + 1
  18. elseif x == 8 then
  19. turtle.turnRight()
  20. elseif x >= 8 and x < 12 then
  21. turtle.forward()
  22. turtle.placeDown()
  23. x = x + 1
  24. elseif x == 12 then
  25. turtle.turnRight()
  26. elseif x >= 12 and x < 16
  27. turtle.forward()
  28. turtle.placedown()
  29. x = x + 1
  30. elseif x == 15 then
  31. print("Build should be finished")
  32. run = false
  33. else
  34. print("ERROR")
  35. run = false
  36. end
  37.  
  38. end
Advertisement
Add Comment
Please, Sign In to add comment