... | @@ -34,6 +34,7 @@ itself. |
... | @@ -34,6 +34,7 @@ itself. |
|
| [onTrade](#ontrade) | When the Villager completes a trade. Requires Paper |
|
|
| [onTrade](#ontrade) | When the Villager completes a trade. Requires Paper |
|
|
| [onChangeWorld](#onchangeworld) | When the mob changes world |
|
|
| [onChangeWorld](#onchangeworld) | When the mob changes world |
|
|
| [onBucket](#onbucket) | When the cow is milked or an entity is bucketed (axolotl etc.) |
|
|
| [onBucket](#onbucket) | When the cow is milked or an entity is bucketed (axolotl etc.) |
|
|
|
|
| [onSkillDamage](#onskilldamage) | When the mob deals damage to other entities via a mechanic |
|
|
|
|
|
|
<!--
|
|
<!--
|
|
ADD THIS TRIGGER BACK WHEN IT WORKS
|
|
ADD THIS TRIGGER BACK WHEN IT WORKS
|
... | @@ -415,3 +416,13 @@ ANormalCow: |
... | @@ -415,3 +416,13 @@ ANormalCow: |
|
- explosion{yield=5;delay=30}
|
|
- explosion{yield=5;delay=30}
|
|
];cd=2} @self ~onMilk
|
|
];cd=2} @self ~onMilk
|
|
```
|
|
```
|
|
|
|
|
|
|
|
#### ~onSkillDamage
|
|
|
|
Executes the skill when the mob deals damage to other entities via a mechanic.
|
|
|
|
```yaml
|
|
|
|
ExampleMob:
|
|
|
|
Type:
|
|
|
|
Skills:
|
|
|
|
- damage @PIR{r=10} ~onTimer:20
|
|
|
|
- message{m="Get damaged! MUHAHAHA"} @trigger ~onSkillDamage
|
|
|
|
``` |
|
|
|
\ No newline at end of file |