Well I asked myself this question moments ago and looked it up. I wondered how Mentholated candy (Halls) and things for wax moths worked.
A white crystalline organic compound, CH3C6H9(C3H7)OH, obtained from peppermint oil or synthesized. It is used in perfumes, in cigarettes, as a mild topical anesthetic, and as a mint flavoring.
Does this mean if you were to plant Peppermint, (mint in general?) around you're hives you'll never have trouble with wax moths?