onHurt
Link to onhurt
Setter/Getter/Method | Method Names | Names | Input/Output |
---|---|---|---|
Setter/Getter/Method Getter | Method Names getDamageSource(); | Names damageSource(); | Input/Output Returns an IDamageSource |
Setter/Getter/Method Getter | Method Names getAmount(); | Names amount(); | Input/Output Returns an Float |
Copyvar test = mods.compatskills.TraitCreator.createTrait("test", 2, 3, "compatskills:banana", 1, "compatskills:banana|5");
test.onHurt = function(event as crafttweaker.event.EntityLivingHurtEvent) {
...
};