This add-on is simple, it adds an output event that will check if the projectile colliding with a brick matches a specified projectile, along with two input events to control what happens when the condition is or is not met.
There is a better mod "VCE Extension - lastProjectile". It's more robust because you don't have to use it right when the projectile hits. If you don't have VCE, search/ask for it on the forums, someone will give it to you.