onAttack trigger - item version wiki page authored by Lxlp's avatar Lxlp
## Description
Executes the skill when the player attacks an entity with the item.
> The associated [@trigger](/../../../MythicMobs/-/wikis/Skills/Targeters/Trigger) is the entity that was attacked
| [Implemented Placeholders](/../../../MythicMobs/-/wikis/Skills/Placeholders#variable-placeholders) |
|--------------------------------|
| `<skill.var.damage-amount>` |
| `<skill.var.damage-type>` |
| `<skill.var.damage-cause>` |
## Implementations
- [MythicMobs](/../../../MythicMobs/-/wikis/Skills/Triggers/onAttack)
## Examples
```yml
ExampleItem:
Material: STONE_SWORD
Skills:
- ignite @trigger ~onAttack
```
## Aliases
- [x] onHit
\ No newline at end of file