Changes
Page history
Create Skills/Triggers/onAttack
authored
Oct 25, 2024
by
Lxlp
Hide whitespace changes
Inline
Side-by-side
Skills/Triggers/onAttack.md
0 → 100644
View page @
79850cac
## Description
Executes the skill when the mob attacks an entity.
> The associated [@trigger](/Skills/Targeters/Trigger) is the entity that was attacked
|
[
Implemented Placeholders
](
/Skills/Placeholders#variable-placeholders
)
|
|--------------------------------|
|
`<skill.var.damage-amount>`
|
|
`<skill.var.damage-type>`
|
|
`<skill.var.damage-cause>`
|
## Examples
```
yml
EXAMPLE_MOB
:
Type
:
CHICKEN
Damage
:
1
Skills
:
# sends a message to all the players in the world
# when the mob attacks an entity
-
message{m=ATTACK} @World ~onAttack
```
## Aliases
-
[x] onHit
\ No newline at end of file