You want to use the global trigger 'before entity hurt.' Then use an if bracket to check if the event/target entity, (the one being hurt), is your custom entity, and the source entity, (the one attacking), is a subtype of 'player.' You should be able to find everything you need in the logic and flow-control tabs.
You want to use the global trigger 'before entity hurt.' Then use an if bracket to check if the event/target entity, (the one being hurt), is your custom entity, and the source entity, (the one attacking), is a subtype of 'player.' You should be able to find everything you need in the logic and flow-control tabs.
If anything, I'm on versions 2023.2
...These functions should be available in that version? I'm not sure I understand.