Skills Overview
Skills are actions that mobs can perform in response to triggers. They allow you to create dynamic, interactive mob behaviors.Skill Syntax
Skills follow this format:Components
Mechanics
The action to perform (damage, particles, sounds, etc.)Targeters
Who/what the mechanic affects (@self, @target, @playersInRadius{r=10}, etc.)
Triggers
When the skill activates (~onSpawn, ~onAttack, ~onDamaged, etc.)
Available Triggers
| Trigger | Description |
|---|---|
~onSpawn | When the mob spawns |
~onAttack | When the mob attacks an entity |
~onDamaged | When the mob takes damage |
~onDeath | When the mob dies |
~onInteract | When a player right-clicks the mob |
~onShoot | When the mob shoots a projectile |
~onEnterCombat | When entering combat |
~onDropCombat | When exiting combat |
~onTargetChange | When the target changes |
~onSignal:<name> | When receiving a signal |
Common Mechanics
effect:particles
Spawn particleseffect:sound
Play a sounddamage
Deal damage to targetmessage
Send a messagepotion
Apply potion effectCommon Targeters
| Targeter | Description |
|---|---|
@self | The mob itself |
@target | The mob’s current target |
@trigger | Entity that triggered the skill |
@playersInRadius{r=10} | All players within radius |
@nearestPlayer | Closest player |
@location | A specific location |
Example Mob with Skills
Related Pages
- Mechanics - All available mechanics
- Targeters - Targeter reference
- Triggers - Trigger reference
- Conditions - Conditional skill execution