how to check if a player collides with/touches a mob and run a command from there?

,
Continue to help post