Custom Enchantment Effect Components and Predicates

I was wondering, is it possible to make an effect component for an enchantment, similar to "post_attack" but that triggers the effect so long as conditions are met once the player "uses an item" by right clicking.

Also, would it be possible to make a custom requirement condition that checks if a sound has played within a certain proximity?

Thanks!

Continue to help post