Help improving my Mario-style jumping setup

Okay, so over a year later I’ve finally managed to make some progress but I still some have issues that I need help with.

Firstly, I got the line trace to work but it appears that my player character will still take damage from jumping on the enemy if they don’t land dead center on the enemy. would seem to imply that the line trace is far too narrow, so I tried swapping out LineTraceByChannel with BoxTraceByChannel instead, which does seem to improve things a bit but I still feel that its not wide enough to keep the player from taking damage when they shouldn’t be.

Secondly, I have an issue where if the player runs into the enemy, the player character will then be bounced upwards which shouldn’t be happening. The source of the problem appears to be the enemy’s jump collision events being triggered by the trace coming into contact with the enemy, which should only be happening if the player’s Z-axis comes into contact with the enemy. However, the trace appears to be triggering regardless of which direction the player comes into contact with the enemy.

Does anyone have any idea on what I can do about either of these issues?

Player jump collision blueprint:

Enemy collision blueprint: