View difference between Paste ID: GkVqHvGH and aYSLw0eh
SHOW: | | - or go back to the newest paste.
1-
waitTime = 404
1+
waitTime = 60
2
3
function checkForItems()
4-
    if turtle.getItemCount() < 10 then
4+
    if turtle.getItemCount() < 1 then
5
        if turtle.getSelectedSlot() == 16 then
6
			print("Not enough items")
7
            os.exit()
8
        end
9
        turtle.select(turtle.getSelectedSlot() +  1)
10
		checkForItems()         
11
    end
12
end
13
14
turtle.select(1) 
15
while true do
16
    checkForItems()
17-
    turtle.dropDown(10)    
17+
    turtle.dropDown(turtle.getItemCount())    
18
    for i = 1, waitTime do
19
    	term.clear()
20
    	term.setCursorPos(1,1)
21
        print("Running...")
22
        term.setCursorPos(1,2)
23
        print("Dropping more in " .. waitTime - i .. " seconds.")
24
		sleep(1)
25
    end 
26
end