I agree with Ithirahad. Magnets! But to do this, have a boolean value for each side of the blocks, and if it finds another clamp within a 1-2 block range that is not on the same ship, then it connects, assuming the angle is not too irregular, and the speeds are not too high. Each clamp could...