Always make sure you are producing raw materials and other resources, such as farming items. Keep raw materials for your farm, such as cotton, bamboo, pineapple, etc. stocked. Have at least one type of raw material available to avoid running out. Begin producing something that requires a material only if you already have at least one of the same type planted for replacement.