During the formation of spores, Bacillus thuringiensis releases compounds that limit the development of organisms that are harmful to the plant.