This is a mod for Factorio, or at least it's the bare bones of one.