View difference between Paste ID: B46L1G8b and BvC1uBiw
SHOW: | | - or go back to the newest paste.
1
2
local h = 1
3
4
function digMove()
5
 turtle.down()
6
 turtle.digDown()
7
end
8
9
turtle.digDown()
10
while not turtle.detectDown() do
11
 digMove()
12
end
13
14
turtle.select(1)
15
16-
while h < 100
16+
while h < 100 do
17
 turtle.up()
18
 turtle.placeDown()
19
 if turtle.getItemCount(1)<3 then
20
  turtle.select(2)
21
  turtle.transferTo(1)
22
  turtle.select(1)
23
 end  
24
 h = h + 1
25
end
26
27
run()