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...