Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- run = true
- x = 0
- while true do
- if turtle.detectDown() then
- turtle.up()
- turtle.select(2)
- if x < 4 then
- turtle.placeDown()
- turtle.forward()
- x = x + 1
- elseif x == 4 then
- turtle.turnRight()
- turtle.forward()
- turtle.placeDown()
- x = x + 1
- elseif x == 8 then
- turtle.turnRight()
- turtle.forward()
- turtle.placeDown()
- x = x + 1
- elseif x == 12 then
- turtle.turnRight()
- turtle.forward()
- turtle.placedown()
- x = x + 1
- elseif x == 15 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