Basiaclly I have a block in the very middle, like this: x Then I have another block I want to spawn x blocks away from this center block but in a random angle from it. Any ideas how you could accomplish this?

Should be pretty easy. Take the middle block location Get a random number between 0 and 2 * PI, let's call this 'angle' Calculate direction vector with x = sin(angle), y = 0, z = cos(angle); Multiply direction vector by the desired radius Add direction vector to middle block location Set the block at the new location

Thank you, only one thing I don't understand is "get a random number between 0 and 2 * PI" why 0 and 2. I dont see how I can get a 360 anglw out of that. Or is it just place holders?

That's because the angle is in radians. You could also get a number from 0 to 360 and use Math.toRadians() to get the same, but we have to use radians since Math.sin() and Math.cos() take radians instead of degrees. Here's an excellent explanation from our local math god Finnbon