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