Changes
Page history
added onChangeWorld trigger
authored
Apr 27, 2023
by
Lxlp
Show whitespace changes
Inline
Side-by-side
Skills/Triggers.md
View page @
030c09bd
...
@@ -32,6 +32,7 @@ itself.
...
@@ -32,6 +32,7 @@ itself.
|
[
onTame
](
#ontame
)
| When the mob gets tamed |
|
[
onTame
](
#ontame
)
| When the mob gets tamed |
|
[
onBreed
](
#onbreed
)
| When the mob breeds with another mob. |
|
[
onBreed
](
#onbreed
)
| When the mob breeds with another mob. |
|
[
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 |
<!--
<!--
ADD THIS TRIGGER BACK WHEN IT WORKS
ADD THIS TRIGGER BACK WHEN IT WORKS
...
@@ -374,3 +375,13 @@ EXAMPLE_MOB:
...
@@ -374,3 +375,13 @@ EXAMPLE_MOB:
# when the mob is loaded after a server restart
# when the mob is loaded after a server restart
-
message{m=LOADED} @World ~onLoad
-
message{m=LOADED} @World ~onLoad
```
```
#### ~onChangeWorld
Executes the skill when the mob changes world.
```
yaml
WorldJumper
:
Type
:
WITHER_SKELETON
Skills
:
-
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}
```
\ No newline at end of file