Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- print("How much i must dig?")
- total = tonumber(read())
- long = 0
- torch = 0
- while true do
- if total > long then
- turtle.dig()
- turtle.forward()
- turtle.digUp()
- long = (long + 1)
- torch = (torch + 1)
- if torch == 4 then
- turtle.select(16)
- turtle.back()
- turtle.placeUp()
- turtle.forward()
- torch = 0
- end
- bloc = turtle.detectDown()
- if not bloc then
- turtle.select(15)
- turtle.placeDown()
- end
- else
- return
- end
- end
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement