Best concept of Modular Space Ship that is assembled in runtime by player?

Look into “Wave function collapse”
like this one:

Make “shapes” of meshes, create ship out of them. Instead of random generation , let player choose variants.