... | @@ -31,10 +31,18 @@ Skill.yml: |
... | @@ -31,10 +31,18 @@ Skill.yml: |
|
CancelDamageEvent:
|
|
CancelDamageEvent:
|
|
Skills:
|
|
Skills:
|
|
- CancelEvent
|
|
- CancelEvent
|
|
|
|
- message{m="&cYou cannot hurt this mob!"} @trigger
|
|
|
|
|
|
Mob.yml:
|
|
Mob.yml:
|
|
|
|
|
|
NoDamageMob:
|
|
NoDamageMob:
|
|
Type: villager
|
|
Type: villager
|
|
Skills:
|
|
Skills:
|
|
- skill{s=CancelDamageEvent;sync=true} ~onDamaged |
|
- skill{s=CancelDamageEvent;sync=true} ~onDamaged
|
|
\ No newline at end of file |
|
|
|
|
|
Or to prevent a skeleton from shooting:
|
|
|
|
|
|
|
|
customskeleton:
|
|
|
|
Type: skeleton
|
|
|
|
Skills:
|
|
|
|
- cancelevent{sync=true} ~onShoot |
|
|
|
\ No newline at end of file |