|
Mechanic: onSwing
|
|
## Description
|
|
==================
|
|
|
|
|
|
|
|
Applies an aura to the target that triggers a skill when they swing (left click)
|
|
Applies an aura to the target that triggers a skill when they swing (left click)
|
|
|
|
|
|
Attributes
|
|
|
|
----------
|
|
|
|
|
|
|
|
| Attribute | Aliases | Description | Default Value |
|
|
|
|
|------------------|---------------|------------------------------------------------------------|---------------|
|
|
|
|
| onSwing | osw | Skill to execute if the target swings / left clicks | NONE |
|
|
|
|
|
|
|
|
|
|
## Attributes
|
|
|
|
| Attribute | Aliases | Description | Default |
|
|
|
|
|-----------|-----------|----------------------------------------------------------------------|---------|
|
|
|
|
| onSwing | onswingskill, osw | Skill to execute if the target swings / left clicks | |
|
|
|
|
|
|
|
|
> This mechanic inherits every attribute of the [aura] mechanic
|
|
|
|
|
|
Examples
|
|
|
|
--------
|
|
|
|
|
|
|
|
|
|
## Examples
|
|
Simple:
|
|
Simple:
|
|
|
|
|
|
Apply an onSwing aura to yourself and catch any entities in front and within 10 blocks of you on fire.
|
|
Apply an onSwing aura to yourself and catch any entities in front and within 10 blocks of you on fire.
|
|
|
|
```yaml
|
|
ApplyAura:
|
|
ApplyAura:
|
|
Skills:
|
|
Skills:
|
|
- onSwing{osw=CatchOnFire;auraname=Ignite;d=300;i=1} @self
|
|
- onSwing{osw=CatchOnFire;auraname=Ignite;d=300;i=1} @self
|
|
CatchOnFire:
|
|
CatchOnFire:
|
|
Skills:
|
|
Skills:
|
|
- ignite{t=60} @EntitiesInCone{angle=90;range=10;rotation=0}
|
|
- ignite{t=60} @EntitiesInCone{angle=90;range=10;rotation=0}
|
|
|
|
```
|
|
|
|
|
|
|
|
##
|
|
|
|
|
|
Intermediate:
|
|
Intermediate:
|
|
|
|
|
|
Apple on onSwing aura to yourself that shoots out a projectile whenever you swing. It will play the skeleton shoot sound when the projectile spawns, have flame particles and a firecharge while it travels, and will deal between 2-4 MAGIC damage.
|
|
Apple on onSwing aura to yourself that shoots out a projectile whenever you swing. It will play the skeleton shoot sound when the projectile spawns, have flame particles and a firecharge while it travels, and will deal between 2-4 MAGIC damage.
|
|
|
|
|
|
|
|
```yaml
|
|
ApplyAura:
|
|
ApplyAura:
|
|
Skills:
|
|
Skills:
|
|
- onSwing{osw=ShootProjectile;auraname=Fireballs;d=300;i=1} @self
|
|
- onSwing{osw=ShootProjectile;auraname=Fireballs;d=300;i=1} @self
|
... | @@ -46,3 +45,8 @@ Apple on onSwing aura to yourself that shoots out a projectile whenever you swin |
... | @@ -46,3 +45,8 @@ Apple on onSwing aura to yourself that shoots out a projectile whenever you swin |
|
Fireball_oH:
|
|
Fireball_oH:
|
|
Skills:
|
|
Skills:
|
|
- damage{a=2-4;cause=magic}
|
|
- damage{a=2-4;cause=magic}
|
|
|
|
```
|
|
|
|
|
|
|
|
|
|
|
|
<!-- LINKS -->
|
|
|
|
[aura]: /skills/mechanics/aura |
|
|
|
\ No newline at end of file |