They can also often be found in caves. Larvae both feed on fungi and are predatory - they can spin webs by secreting acid fluids, which they use to kill smaller invertebrates and capture spores. Some of the predatory larvae cannibalize pupa of their own species.
Some cave-dwelling larvae feed on fungi and prey upon other invertebrates. These larvae produce acidic fluids that they use to trap prey, including spores.  They also engage in cannibalism by consuming the pupae of their own kind.