How to check health % 1.21.4
I want to make a weapon that deals more damage if the enemy is above 50% health, but I dont know how to check for health ammount that's not just flat health. It would be great if it was possible to do without any super complicated predicates. Does anybody know?