One of the new maps will have new mining spot, so I finaly got around to redesigning the resource extraction mechanic.

It is quite simple. The game automaticaly selects the best tool for the job. Depending on your total score, which is a total of tool quality and divided physical atributes, you will be able to gain certain types of resources. In the picture, you can see that at score level 0, you get only rocks. If you get a better tool, or increase your physical stats, you will be able to get some copper from this deposit at score level 10.
To increase the amount of resources you gain, you spend more endurance. Endurance spent is divided into 10 stages and goes from 10% to 100% of your max endurance stat. So if your max endurance is 100 and you go through some fighting, which leaves you with 80 endurance, you will only be able to use enough endurance for stage 8, which multiplies your gained resources by 8. Quite straight forward.
This new system will give more use to endurance and it will make resource gain more controlable. In previous versions, you could level your character a bit, mine once and get hundreds of resources, making you never use that system again.