Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- while(true) do
- digtunnel()
- go(3)
- digtunnel()
- turtle.turnRight()
- go(3)
- turtle.turnLeft()
- end
- function digtunnel()
- torch = 0
- for i = tonumber(args[2]) ,1,-1 do
- torch = torch + 1
- turtle.digUp("left")
- turtle.digDown("left")
- if torch%10 == 0 then
- turtle.placeDown()
- end
- turtle.dig("left")
- while (not(turtle.forward()))do
- turtle.dig("left")
- turtle.attack()
- end
- end
- turtle.turnRight()
- turtle.turnRight()
- go(arg[2])
- end
- end
- function go(far)
- for i=1 , tonumber(tonumber(far)) do
- while (not(turtle.forward()))do
- turtle.dig("left")
- turtle.attack()
- end
- end
- end
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement