Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- local distance = ...
- if distance ~= nil then
- distance = tonumber(distance)
- for i = 1, distance do
- if turtle.forward() then
- turtle.digUp()
- print("Turtle moved forward.")
- else
- turtle.dig()
- turtle.forward()
- turtle.digUp()
- print("Turtle destroyed blocks.")
- end
- end
- else
- print("Did not speficy distance.")
- end
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement