Ah, now I understand what you want. Unfortunately, while it is possible, with my limited knowledge, what I would create would be too cpu intensive. Since there is no entity type that creates resources, it would need to be fully scripted.
Edit: You might try asking in the Factorio discord, maybe someone there has some better ideas.