M (diamond worth 1,000 sp and at least 15 cubic centimeters of flesh of the creature that is to be cloned, which the spell consumes, and a vessel worth 2,000 sp)
As you spend 1 hour to cast this spell, you grow an inert duplicate of a living creature as a safeguard against death. This clone forms inside a sealed vessel that is large enough to hold a Medium creature, such as a huge urn, coffin, mud-filled cyst in the ground, or crystal container filled with salt water. The clone grows to full size and maturity after 120 days; you can also choose to have the clone be a younger version of the same creature. It remains inert and endures indefinitely, as long as its vessel remains undisturbed.
At any time after the clone matures, if the original creature dies, its soul transfers to the clone, provided that the soul is free and willing to return. The clone is physically identical to the original and has the same personality, memories, and abilities, but none of the original’s equipment. The original creature’s physical remains, if they still exist, become inert and can’t thereafter be restored to life, since the creature’s soul is elsewhere.