Hello, this is my first code so its not that good but its ok, its really short but it can mine 300 blocks, you have to do this underground or in a cave or something. Go have fun :D/> post if you have tried it and what you think of it, i am making a new better one later :D/>
pastebin : http://pastebin.com/wdDUiSqM
code :

cond = 1
while cond ~= 100 do
turtle.dig()
turtle.digUp()
turtle.digDown()
turtle.forward()
cond = cond + 1
end