I suggest first having a random block from the ship removed, with probability of each block being taken for this being proportional to distancetocorex/shipsxaxis + same for y + same for z. Then, a random block is taken, and removed with probability proportional to previous formula and inversly proportional to distance from the nearest removed block. Once all blocks bass the check, we\'re done!