Involved in sesquiterpene olefins biosynthesis, constituants of cannabinoids and terpenoids-rich resins. Catalyzes mainly the conversion of (2E)-farnesyl diphosphate to beta-caryophyllene and alpha-humulene. Can also use (2E)-geranyl diphosphate as substrate with low efficiency