When very heavy stars die, they explode. This explosion is called a supernova. When a supernova happens in a nebula, the explosion pushes the gas in the nebula together. This makes the gas in the nebula very dense (thick) . Gravity and exploding stars both help to bring the gas together to make new stars in nebulas.