It would be nice to have a sort of vending machine in my mines that dispenses stone pickaxes while recycling your excess stone. But I am having trouble with getting the items to always dispense in the correct order of the formula. Can someone please explain to me how this works?