i feel like once it's over the rocks to mine the essence, it should click on the rock that is farther away if it's not depleted, if it is click on the other rock. i really feel like the pathfinding in that specific area is way to obvious when it doesn't just click the rock. other than that, the script is perfect. no complaints
(edit: i just remembered it might be a view distance thing. if it is, just click the essence rock that is within once over the rocks climb