do you want to create it client or server side? (building with bricks + super shift or just place with console)
and which part of the brick must be inside the sphere to be placed, any part, the center, or fully enclosed?
edit:
this is what I used to use to build the top half of spheres
function sphere(%diameter)
{
%a = 0;
if(!(%diameter % 2))
%a += 0.5;
for(%z = 0; %z < %diameter / 2; %z++)
{
for(%y = %diameter / -2; %y < %diameter / 2; %y++)
{
for(%x = %diameter / -2; %x < %diameter / 2; %x++)
{
if(mSqrt(mPow(%x + %a, 2) + mPow(%y + %a, 2) + mPow(%z + %a, 2)) <= %diameter / 2)
commandtoserver('plantbrick');
commandtoserver('supershiftbrick', 0, -1, 0);
}
commandtoserver('supershiftbrick', -1, %diameter, 0);
}
commandtoserver('supershiftbrick', %diameter, 0, 1);
}
commandtoserver('supershiftbrick', 0, 0, %diameter / 2);
}