Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- local a
- local b = 0
- print("Geben sie eine Entfernung an")
- a=tonumber(io.read())
- function vor()
- while turtle.detect() == true do
- turtle.dig()
- end
- if turtle.forward() == true then
- b=b+1
- end
- end
- while b<a do
- vor()
- print (b)
- end
- b=0
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement