View difference between Paste ID: x0BfwC2V and 7fFJgwMf
SHOW: | | - or go back to the newest paste.
1
if turtle.getItemCount(16) ~= 0 then
2
  turtle.dig()
3
  turtle.select(1)
4
  turtle.place()
5
  for i = 3, 16 do
6
    turtle.select(i)
7
    turtle.drop()
8
  end
9
  turtle.select(1)
10
  turtle.dig()
11
end