View difference between Paste ID: hnLhhBSJ and 018tq1Zx
SHOW: | | - or go back to the newest paste.
1
mined = 0
2
moved = 0
3
while 1<2 do
4
 if turtle.detectUp() then
5
  turtle.digUp()
6
  mined = mined + 1
7
 end
8
 if turtle.getItemCount()>0 then
9
  moved = moved + 1
10
  turtle.drop()
11
 end
12-
 sleep(1)
12+
 sleep(0.5)
13
 print("Mined: "..tostring(mined))
14
 print("Moved: "..tostring(moved))
15
end