Do you mean the cubes need to be totally inside the sphere, instead of overlapping it? Or do you mean you want to be able to control certain sizes/dimensions?
The file you attached seems to be working on my computer.
Ideally none of the spheres should be overlapping.( minecraft style) To give some dimensions, lets say, 70 radius sphere, 2mx2mx3.5m cubes. Nothing else needs to be controlled.
Yes the file is working unless i change the radius of a sphere. In that case the cubes dont follow the sphere parameter.
I tried to change the range and set some domain to it but the cubes dispersed and cant go attach to each other anymore.
I think the others have pretty much covered you.
I’m only posting this because it has the option to remove voxels from the center so as to be lighter for the graphics card!
(if it’s not for construction, only what you see matters)