Skip to content

GitLab

  • Projects
  • Groups
  • Snippets
  • Help
    • Loading...
  • Help
    • Help
    • Support
    • Community forum
    • Submit feedback
    • Contribute to GitLab
  • Sign in
MythicMobs MythicMobs
  • Project overview
    • Project overview
    • Details
    • Activity
  • Issues 152
    • Issues 152
    • List
    • Boards
    • Labels
    • Service Desk
    • Milestones
  • Operations
    • Operations
    • Incidents
  • Analytics
    • Analytics
    • Repository
    • Value Stream
  • Wiki
    • Wiki
  • Members
    • Members
  • Activity
  • Create a new issue
  • Issue Boards
Collapse sidebar
  • MythicCraft
  • MythicMobsMythicMobs
  • Wiki
    • Skills
    • Mechanics
  • onswing

onswing · Changes

Page history
updated layout and informations authored Sep 02, 2024 by Lxlp's avatar Lxlp
Hide whitespace changes
Inline Side-by-side
Showing with 37 additions and 33 deletions
+37 -33
  • skills/mechanics/onswing.md skills/mechanics/onswing.md +37 -33
  • No files found.
skills/mechanics/onswing.md
View page @ 41e888ff
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 | ## Attributes
|------------------|---------------|------------------------------------------------------------|---------------| | Attribute | Aliases | Description | Default |
| onSwing | osw | Skill to execute if the target swings / left clicks | NONE | |-----------|-----------|----------------------------------------------------------------------|---------|
| 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:
Skills:
- onSwing{osw=CatchOnFire;auraname=Ignite;d=300;i=1} @self
CatchOnFire:
Skills:
- ignite{t=60} @EntitiesInCone{angle=90;range=10;rotation=0}
```
ApplyAura: ##
Skills:
- onSwing{osw=CatchOnFire;auraname=Ignite;d=300;i=1} @self
CatchOnFire:
Skills:
- 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
ShootProjectile: ShootProjectile:
Skills: Skills:
- projectile{bulletType=ITEM;material=FIRE_CHARGE;bulletSpin=29;i=1;v=24;mr=100;d=100;hnp=true;oS=Fireball_oS;oT=Fireball_oT;oH=Fireball_oH} @forward{f=300;y=0} - projectile{bulletType=ITEM;material=FIRE_CHARGE;bulletSpin=29;i=1;v=24;mr=100;d=100;hnp=true;oS=Fireball_oS;oT=Fireball_oT;oH=Fireball_oH} @forward{f=300;y=0}
Fireball_oS: Fireball_oS:
Skills: Skills:
- sound{s=entity.skeleton.shoot;v=1;p=1} @origin - sound{s=entity.skeleton.shoot;v=1;p=1} @origin
Fireball_oT: Fireball_oT:
Skills: Skills:
- particles{particle=flame;a=4;hs=0.2;vs=0.2;y=0;s=0.1} @origin - particles{particle=flame;a=4;hs=0.2;vs=0.2;y=0;s=0.1} @origin
Fireball_oH: Fireball_oH:
Skills: Skills:
- damage{a=2-4;cause=magic} - damage{a=2-4;cause=magic}
\ No newline at end of file ```
<!-- LINKS -->
[aura]: /skills/mechanics/aura
\ No newline at end of file
Clone repository
Home
Changelogs
Premium Features
Commands and Permissions
Mythic Add-ons
Compatible Plugins
API Information
Guides
  • Troubleshooting
  • FAQ / Common Issues
  • Examples
Packs
Mobs
  • Mob Options
    • Display Options
  • Mob Levels
  • Mob Factions
  • Power Scaling
  • Damage Modifiers
  • Equipment
  • BossBar
  • Custom AI
  • Custom Kill Messages
  • Threat Tables
  • Immunity Tables
  • Templates
  • Vanilla Overrides
  • Extra: Disguises
  • Extra: ModelEngine
Skills
  • Mechanics
  • Targeters
    • Filters
  • Triggers
  • Conditions
    • In-line conditions
  • Metaskills
  • Placeholders
  • Variables
Items
  • Options
  • Attributes
  • Enchantments
  • Potions
  • Banner Layers
  • Firework
Drops & DropTables
  • Drops
  • DropTables
  • FancyDrops
Spawning
  • Spawners
  • Random Spawns
Stats
  • Custom Stat Options
  • Modifiers
  • Built in Stats
Technical
  • Math
  • Operations
    • Attribute Operations
    • Stats Modifiers
  • Particles Types
  • Audience
  • Equipment Slots
  • SkillTree
  • Intratick Scheduling
  • Dynamic Metaskills
Other
  • Pins