Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- local arg = { ... }
- local length = arg[1]
- function move()
- turtle.dig()
- turtle.forward()
- turtle.digUp()
- if not turtle.detectDown() then
- turtle.placeDown()
- end
- end
- for i=1, length, 1 do
- move()
- end
- turtle.back()
- turtle.select(2)
- turtle.place()
- turtle.turnRight()
- turtle.turnRight()
- turtle.select(1)
- for j=1, length-1, 1 do
- turtle.forward()
- end
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement