Ok. So I made just one cube BP:
You see I have the cube, and the collision volume, and two variables. Power = this is a power cube, Rubber = this is a rubber cube.
You can drop them in the level, and check those variable accordingly.
The rubber cube and power cube don’t need any code, because they don’t care about anything else. In the ones that are intended to be metal ( power = no, rubber = no ), I have this:
When I overlap anything ( and I am not powered or rubber ), if it’s a cube with power, turn on the material.
When I stop overlapping stuff, set my material to off, but if I’m still overlapping a cube with power, turn the material back on again.
Obviously I haven’t implemented the material change and cube movement, but I hope you get the idea.