I hate making baby building blocks. I make mine out of fondant and can spend far too long squaring each block up and smoothing the sides so they look perfect.
I bought a mould a while ago, which is a block of squares. I’ve not tried this out yet but one idea is to make them out of melted chocolate in this mould, and then cover the block with fondant. Alternatively (and again I’ve not tried it yet) fill the mould with fondant and pop it in the freezer so when the fondant is released it doesn’t go out of shape.
Good luck and hope the above may be of some help to you x