Hi, can you test in Minecraft via command whether an entity is hit? Or whether she gets less Hrezen? Please answer me ;-)
You could stoaren the Hp of an entity in first in scoreboard1 then in scoreboard2 and then look whether scoreboard1 This is then possible with a clock with repeaters To the first cmd execute store to the second execute store and then execute if and there you can connect an output with a comparator I don't know the explicit cmds, I find execute store too complicated