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 135
    • Issues 135
    • 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
  • cast

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.

cast

Mechanic: Cast

Cast is an Aura mechanic similar to Skill in that it executes a skill, however Cast instead "casts" the skill similar to how you'd expect an RPG hero or monster to do so. Cast will execute the given skill if the cast completes successfully (e.g. if the aura finishes normally), but can be interrupted.

Only one spell can be cast at a time, and which runs as an aura on the caster named #casting. Removing the aura from the entity will interrupt the cast. Any aura settings that cause the cast to stop early will also interrupt casting, such as cancelling on move or teleport.

Attributes

Cast can also use most Aura attributes

Attribute Aliases Description Default
onCast oc Skill to execute if the cast finishes successfully
onInterrupted oi Skill to execute if the cast is interrupted
onNoTarget ont Skill to execute if no target is found
skillname sn Display name of the spell in the cast bar
showCastBar cb Whether to show the cast bar. Requires a compatible hologram plugin. true
cancelOnMove com Whether to cancel the aura if the caster moves false

Examples

Skills:
- cast{
      skillName="&aFrost Blast"
      duration=40;
      onCast=FrostBlast-Cast;
      onTick=FrostBlast-Tick;
      onInterrupted=FrostBlast-Interrupted;
      onNoTargets=FrostBlast-NoTargets;
      cancelOnMove=true;
      showCastBar=true
    } @target ~onTimer:100
Clone repository
  • Home
  • Changelogs
  • Premium Features
  • Commands and Permissions
  • FAQ / Common Issues
  • Mythic Add-ons
  • Compatible Plugins
  • API Information

Mobs

  • Overview
  • Types
  • Mob Options
  • Mob Levels
  • Mob Factions
  • Power Scaling
  • Damage Modifiers
  • Equipment
  • BossBar
  • Custom AI
  • Custom Kill Messages
  • Threat Tables
  • Immunity Tables
  • Extra: Disguises
  • Extra: MiniaturePets

Skills

  • Overview
  • Mechanics
  • Effects
  • Targeters
  • Triggers
  • Conditions
  • Placeholders
  • Variables

Items & Drops

  • Drops and Drop Tables
  • Options
  • Attributes
  • Common Item ID's
  • Enchantments
  • Potions
  • Banner Layers

Spawning

  • Spawners
  • Random Spawns