There is a Legacy version
here.
Clone
Ritual 9Rare Source Player Core 2 pg. 266Cast 7 days;
Cost rare laboratory supplies and reagents worth the target’s level (minimum 1) × 100 gp;
Secondary Casters 3
Primary Check Crafting (legendary);
Secondary Checks Arcana,
Medicine,
OccultismRange 10 feet;
Target(s) 1 willing living creature up to 20th level
You collect hair, nail clippings, and samples of skin and blood from the target, who must be present throughout the ritual and can be one of the casters. You then use those samples to grow a duplicate of the target’s physical form that will house the target’s soul upon death. This duplicate is physically identical to the original creature.
In order to perform the ritual, you need an
expanded alchemist’s lab or a superior set of equipment. Once the ritual is successfully completed, the duplicate grows within the laboratory equipment for 2d4 months. Though direct involvement isn’t required during this period of growth, you must prevent any interference or interruption, or the ritual fails. When the duplicate is complete, the original creature’s soul enters it as soon as their original body dies, or immediately if the creature died during the intervening months, as long as the soul is free and willing. If
Pharasma has decided that the target’s time has come or the target’s soul is trapped or doesn’t wish to return, the duplicate remains empty until the impediment is removed. While unoccupied, the inert duplicate must be preserved in suitable alchemical equipment to prevent it from rotting.
Critical Success The cloning process is successful. When the soul occupies the completed clone, it is
clumsy 1,
drained 1,
doomed 1, and
enfeebled 1 for 1 week; these conditions can’t be removed or reduced by any means until the week has passed.
Success As critical success, but each condition value is 2.
Failure You fail to form the clone.
Critical Failure The clone appears to be successful, but something went horribly wrong. Once it grows to its full size, it can’t hold the target’s soul and instead houses a malevolent intelligence or an invasive creature (such as a powerful demon).