View difference between Paste ID: vLYMDCNH and nu5e9nMH
SHOW: | | - or go back to the newest paste.
1
function getBlock()
2
  turtle.suckDown()  
3
end
4
 
5
function checkSlot()
6-
  if (turtle.getItemCount(1)) == 1 then
6+
7-
    turtle.drop()
7+
8-
  end  
8+
9
    turtle.place()
10
  end
11
end
12
 
13
function run()
14
  turtle.select(1)
15
  while true do  
16
    checkSlot()
17
  end
18
end
19
 
20
run()