On spawn:
Set {mob::%uuid of event-entity%::health} to 100
On damage:
If {mob::%uuid of victim%::health} is set:
Remove 20 from {mob::%uuid of victim%::health}
Set damage to 0
If {zmienna powyżej} is smaller than or equal to 0:
Kill victim
Delete {zmienna powyżej}