The problem with having platforms is that the player could just stay under them to avoid getting hit by the cucumbers.
Or is there a way to make them disabled for other bodies so they can go through?
Hmmm...I think what you want, in this case, is to have cucumbers ignore platforms and all go to the floor, but introduce BIG BOI CUCUMBER that not only reaches the height of the platform, but lands hard on the ground, causing the other cucumbers to "Jump" to at least platform height.
Oh yeah, you wanted to know how to make them ignore platforms. Take a look at "Collision Masks/Layers"