Moths find certain smells offensive. These include lavender, mint, cedar, and certain spices such as cloves, rosemary, and thymes. Lavender and cedar are especially common in moth repellents. Both can be used to make oil.