The New Zealand glowworm is the larvae of a fungus gnat which uses bioluminescence to attract flying insects to the sticky threads below its slimy tube-like nest.