So the order is this:
Power object for 16 seconds
Power piston 1 for 16 seconds
Power piston 2 for 16 seconds
.
.
.
Power piston 32 for 16 seconds
Start over
Right?
So you are actually switching redstone signals through 34 different devices?After the last piston (the 32nd one), it pulses a signal to turn off Phase 2. You missed that last one.
function dropItems()
for num = 1, 16 do
turtle.select(num)
turtle.dropDown()
end
turtle.select(1)
end
count = 0
while (turtle.getItemCount(16) == 0) do
turtle.attack()
count = count + 1
if(count % 10 == 0) then dropItems() end
sleep(0.5)
end