Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- run = true
- x = 0
- while true do
- if turtle.detectDown() and x == 0 then
- turtle.up()
- turtle.select(2)
- x = x + 1
- elseif x < 5 then
- turtle.placeDown()
- turtle.forward()
- x = x + 1
- elseif x == 5 then
- turtle.turnRight()
- turtle.forward()
- elseif x >= 5 and x < 9 then
- turtle.placeDown()
- turtle.forward()
- x = x + 1
- elseif x == 9 then
- turtle.turnRight()
- turtle.forward()
- elseif x >= 9 and x < 13 then
- turtle.placeDown()
- turtle.forward()
- x = x + 1
- elseif x == 13 then
- turtle.turnRight()
- turtle.forward()
- elseif x >= 13 and x < 17 then
- turtle.placedown()
- turtle.forward()
- x = x + 1
- elseif x == 16 then
- print("Build should be finished")
- run = false
- else
- print("ERROR")
- run = false
- end
- end
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement