look at my terrain generator.
let me explain how these work anyway...
so you got your position
%pos
and you want to have to allign to a 4xCube Brick. Since positions go from the center, you have to use 2, since theres 2 studs from the center of a 4xCube.
Then it's just a bit of math. Basically you multiply it by two then divide it by two. Then since you round it. i still dont know why.
%x = getWord(%pos,0);
%y = getWord(%pos,1);
%z = getWord9%pos,2);
%x = mFloatLength((%x * 2) / 2,0);
%y = mFloatLength((%y * 2) / 2,0);
%z = mFloatLength((%z * 2) / 2,0);
%pos = %x SPC %y SPC %z;