I need help getting an attribute enchantment to work with predicates

I'm working on getting this enchantment working, and I want its step height effect to stop while sneaking.
Continue to help post