Mobs applying an effect to Players on hit

Is there a way to do this with datapacks that isnt that complex?

Continue to help post