@OskSta, I always feel inspired by #Townscaper and many of your previous works. Currently, I am working in @PlayWonderbox building procedural structures as well. Would be great to share some of our techniques as a thank you.
It started with the classic marching cubes approach. By optimizing rotations and mirrors we were able to reach a dictionary with ~53 pieces. But since we were planning to develop many blocks, further optimizations were required.