Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- print("distance")
- a = tonumber(read())
- print("width")
- i = tonumber(read())
- b = 0
- c = 0
- while i > 0 do
- while b < a do
- turtle.dig()
- turtle.forward()
- b = b+1
- end
- i = i-1
- if b == a and c == 0 then
- turtle.turnRight()
- turtle.dig()
- turtle.forward()
- turtle.turnRight()
- c = c+1
- b = 0
- else
- turtle.turnLeft()
- turtle.dig()
- turtle.forward()
- turtle.turnLeft()
- c = c-1
- b = 0
- end
- end
Add Comment
Please, Sign In to add comment