My wife and I have accumulated a ton of these tiny Pokémon mega construx sets and wanted a way to display them in a more managed and compact format. I've thrown this together to make putting them on a shelf a bit more manageable. I modeled it in OnShape, and there's a ton of variables that you can use to tweak it to fit your needs. The most important ones are steps and count, which controls how many units front to back and left to right will be generated. Let me know if there's permutations that you would like posted. The 3x3 version is about as large as I could fit on my Prusa MK4.
You should test with the 1x1 to adjust tolerances of the lego interface for your printing setup.
Here's the onshape link if you'd like to futz with it.
The author marked this model as their own original creation.