So this is the solution that I ended up going with. Turns out that this guy has an updated and improved version of his command block script specifically aimed at 1.12+. It's a little cleaner and conveniently generates a theoretically infinite distance in a gradually expanding spiral from 0,0...