Advertisement
Kengu

Untitled

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