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 132
    • Issues 132
    • 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
  • onattack

Last edited by Lxlp 2 months ago
Page history
This is an old version of this page. You can view the most recent version or browse the history.

onattack

Description

Applies an aura to the target that triggers a skill when they damage something. Can use any aura attribute

Implemented Placeholders
<skill.var.damage-amount>
<skill.var.damage-type>
<skill.var.damage-cause>

Attributes

Attribute Aliases Description Default
onattackskill onattack, oa, onmelee, onhitskill, onhit, oh metaskill to execute if the target hits something
cancelEvent cE, canceldamage, cd Whether or not to cancel the event that triggered the aura false
damageAdd add, a An optional static increase to the original hit's damage 0
damageMultiplier multiplier, m An optional multiplier to the original hit's damage 1
modDamageType damagetype The type of the damage inflicted

This mechanic inherits every attribute of the aura mechanic

Examples

  Skills:
  - onAttack{oH=SuperPunch;cE=true;auraname=MyAura}

Aliases

  • onhit
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
Other
  • Particles Types
  • Audience
  • Equipment Slots
  • Pins
Technical
  • Math
  • Operations
    • Attribute Operations
    • Stats Modifiers
  • SkillTree
  • Intratick Scheduling
  • Dynamic Metaskills