If they are from different classes, The easiest way would be addind another check to the cube with a cast and if its mario you could play the chaos cache or apply a field to it when mario hits the cube.
If they are from the same class you could use some collisions profiles, and trace against those channels in the cubes, if sucesful destroy/play animation, otherwise nothing.