i dont know if i am doing something wrong here but i can see any think wrong with my program here.
function DigTunnel(Int) torch = 0 while Int > 0 do if turtle.detectUp() then turtle.digUp() end if turtle.detectDown() then turtle.digDown() end while turtle.detect() do turtle.dig() sleep(0.5) end if torch == 8 then turtle.select(2) turtle.placeDown() torch = 0 end turtle.forward() torch = torch + 1 Int = Int - 1 end end DigTunnel(48) turtle.turnRight() DigTunnel(3) turtle.turnRight() DigTunnel(48)











