I’ve had to upload the node tree in 3 photos as it’s quite long. I’ve posted them in order, starting from left of the node tree.
One solution I’ve thought of is copying the node frame called ‘Cracks’ and linking it with the factor of the emission shader’s Colour Ramp, so the lava only appears where the cracks are. Could this work?