Ride enchantment

I want to make an enchantment that lets you ride tridents but it isnt working. I have the "projectile_spawned" that runs the function execute on owner run ride @s mount @e[tag=warp,limit=1, sort=nearest] but that doesnt work please help me!

Continue to help post