Projectile destroying when hitting on the wall

Is there a way to make a projectile not destroy on the wall?

Use this block:

image