Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- function walk(dist)
- print("Turtle moving" .. tostring(dist))
- for i=1,dist do
- turtle.forward()
- end
- end
- function hole(diameter,depth)
- for i=1,depth do
- for i=1,4 do
- for i=1,diameter do
- turtle.dig()
- turtle.forward()
- end
- turtle.turnLeft()
- end
- turtle.digDown()
- turtle.down()
- end
- end
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement