while true do
 turtle. attack()
 if turtle.getItemCount(16) ~= 0 then      
  for a = 1,16,1 do
   turtle.select(a)
   turtle.dropDown()
  end
 turtle.select(1)
 end
end