Changes
Page history
added onMilk trigger
authored
Apr 27, 2023
by
Lxlp
Show whitespace changes
Inline
Side-by-side
Skills/Triggers.md
View page @
3a41abb2
...
...
@@ -33,6 +33,7 @@ itself.
|
[
onBreed
](
#onbreed
)
| When the mob breeds with another mob. |
|
[
onTrade
](
#ontrade
)
| When the Villager completes a trade. Requires Paper |
|
[
onChangeWorld
](
#onchangeworld
)
| When the mob changes world |
|
[
onMilk
](
#onmilk
)
| When the cow is milked
<!--With a bucket, you perverts.-->
|
<!--
ADD THIS TRIGGER BACK WHEN IT WORKS
...
...
@@ -385,3 +386,17 @@ WorldJumper:
-
command{c=say The End!} @self ~onChangeWorld ?varEquals{var=skill.world;value=world_the_end}
-
command{c=say The Nether!} @self ~onChangeWorld ?varEquals{var=skill.world;value=world_nether}
```
#### ~onMilk
Executes the skill when the cow is milked.
```
ANormalCow:
Type: Cow
Skills:
- skill{cd=2;s=[
- message{m="HOW DARE YOU?!?"} @trigger
- sound{s=entity.creeper.primed} @self
- delay 30
- explosion{yield=5} @self
]} @self ~onMilk
```
\ No newline at end of file