Title. I have a "priest" npc that increases your natural regeneration, but I need a method to check the priest's health, because I don't want the priest to buff you if it's dead.
if player("%{_priestUUID}%") is not dead:
send "test" to event-entity
if {_p} is event-entity:
increase the heal amount by 3
send "&aYour natural regeneration was buffed by &ePriest&a!" to event-entity
show 1 heart at event-entity
show 1 heart at {_priestUUID}```