yes, yes it does
by heat and pressure
Diamond is formed when carbon is placed under high pressure and heat. The pressure and heat necessary for its formation is not found on the surface of the earth, but rather deep inside it. This fact, plus the sheer amount of time necessary for it to form, makes it a nonrenewable resource.
Metamorphic rocks form from heat and pressure.
It is formed by the action of heat or pressure.
Magma is molten meaning liquid-like so it is able to move inside earth. The tectonic plates separate the earth and magma. This explains when the plates move earthquakes and volcanoes occur. Lava is not magma by the way! lava is hardened magma and magma is molten!
Geothermal energy is the term used to describe energy that comes from inside the earth, usually in the form of heat stored in the Earth's crust.
Metamorphic rocks form from existing rocks that are subjected to high temperature and pressure conditions, typically found deep within the Earth's crust. This process causes the minerals in the rock to recrystallize and reorganize, resulting in a new rock with different characteristics. Metamorphic rocks can also form through the addition of fluids, which can facilitate chemical reactions and mineral growth.
Metamorphic rocks form deep under the Earth's surface because the high pressures and temperatures required for the transformation of existing rocks into metamorphic rocks are typically found at greater depths. These conditions are usually created by tectonic forces or by the burial of rocks under layers of sediment.
Plasmas require immense heat and pressure to form.
There are many ways to change and form it but the most common way the rock get the pressure and heat it needs to change and form is when the rock is beneath the Earth's surface (near the mantle where it's hot) and receive the pressure from all the rock layers above it.
Generally, diamonds are formed in the Earth and not from Supernovas.