Well, we have https://mindustrygame.github.io/ that it is free software. And IHMO it is best that Factorio.
Can you write scripts in factorio? You can do that in mindustry.
ShapezIO has a better idea with an overlay to do that stuff (albeit with more restrictions).
A flow based system would be far better. It’s easier for non programmers (which is also more fair) and could visually look and function more like normal mindustry.