while true do
  if turtle.detect() then
    turtle.dig()
    sleep(0.2)
  end
  turtle.dropDown()
end
