Advertisement
Guest User

Untitled

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