Has Learned Spell

Description

Whether the target player has learned the given spell. Optionally, the player's level in that spell can be matched against a ranged int.

Attributes

Attribute Aliases Description Default
id spell, s The spell to check against. Supports placeholders. FIREBALL
level l (Optional) Ranged int the player's level in the spell must match. Examples: 3, >=2, 1to3. (any level)

Examples

A "spell teacher" mob that only teaches MagicMissile to players who don't already know it:

Skills:
- teachSpell{spell=MagicMissile} @trigger ?!hasLearnedSpell{spell=MagicMissile}

Only run a procedural buff if the player has Fireball at level 3 or higher:

Skills:
- skill{s=FireMastery} @self ?hasLearnedSpell{spell=Fireball;level=>=3}

Aliases

  • hasSpell
Updated Aug 19, 2026