Sesquiterpene synthase involved in the production after herbivore attack of a blend of volatiles that attracts natural enemies of herbivores (PubMed:15075399, PubMed:21607717). Converts farnesyl diphosphate to sesquithujene, (S)-beta-bisabolene, (Z)-alpha-bergamotene, sesquisabinene B and several minor products (PubMed:25940560, PubMed:15075399, PubMed:21607717). Can also act in vitro as a monoterpene synthase, converting geranyl diphosphate to (S)-(-)-limonene, beta-myrcene and 11 other monoterpenes (PubMed:25940560, PubMed:15075399). (2E,6E)-farnesyl diphosphate = diphosphate + sesquithujene (2Z,6Z)-farnesyl diphosphate = (1S,5S,6S)-alpha-bergamotene + diphosphate (2E,6E)-farnesyl diphosphate = (E)-beta-farnesene + diphosphate (2E,6E)-farnesyl diphosphate = (S)-beta-bisabolene + diphosphate (2Z,6E)-farnesyl diphosphate = (-)-beta-curcumene + diphosphate (2E,6E)-farnesyl diphosphate = diphosphate + gamma-curcumene (2E,6E)-farnesyl diphosphate = diphosphate + sesquisabinene B Binds 3 Mg(2+) or Mn(2+) ions per subunit. Secondary metabolite biosynthesis; terpenoid biosynthesis. Monomer. Highly expressed in the husk. Detected in leaves. The Asp-Asp-Xaa-Xaa-Asp/Glu (DDXXD/E) motif is important for the catalytic activity, presumably through binding to Mg(2+). The allele found in cv. B73 encodes an inactive enzyme while the two alleles found in cv. Delprim encode an active (TPS5A) and an inactive (TPS5B) enzyme (PubMed:15075399). Belongs to the terpene synthase family.