Spell Engine
ModGPL-3.0-only

Spell Engine

๐Ÿช„ Data driven magic library

4.3M
Downloads
546
Followers
3 months ago
Updated
๐Ÿ“ฆ
30
Versions

๐Ÿ“–About Spell Engine

Environment: Client
Environment: Server
Discord

๐Ÿ“ฆ Installation

๐ŸŽ Installation via Modrinth app is strongly recommended, to automatically resolve all required mods.

Required

Additionally on Fabric:

Additionally on NeoForge:

โญ๏ธ Content made with Spell Engine

Archers
Paladins
Wizards
Rogues
Skill Tree
Jewelry
Relics
Arsenal
Armory

๐Ÿค Made by partners

Anarchy
Mercenaries
Oathsworn
Archer Expansion
Elemental Wizards
Berserker
Witcher
Forcemaster
Death Knights

๐Ÿช„ Features

SpellEngine is library mod (also known as an API) that lets developers create magic spells using, providing players with a complete spell-casting system including spell books, visual effects, and weapon integration.

For playable content mods check the section at the bottom.

Data driven API

  • ๐Ÿ—ก๏ธ Spells can be assigned to any weapon (data driven with automatic weapon compatibility)
  • ๐Ÿ”ฎ Spells deal damage based on Spell Power entity attributes
  • โœ๏ธ Spells defined in JSON format with hot-reloading and network synchronization
  • ๐Ÿ“ฆ Spell Container System with proxy mode, equipment slots, and dynamic spell resolution
  • ๐Ÿ”„ Universal pattern matching for tags, regex, and exact matches across all spell properties
  • ๐Ÿ› ๏ธ Programmatic spell generation with SpellBuilder and SpellGenerator for mod developers
  • โš™๏ธ Spells have a comprehensive set of mechanical behaviours:
    • Spell Types: Active (casted), Passive (triggered), Modifier (spell-modifying)
    • Cast Modes: Instant, charged, channeled, with configurable haste effects
    • Trigger System: 14+ trigger types (melee, arrow, spell, damage, evasion, roll, etc.) with conditional logic
    • Targeting: Aim, Beam, Area, Caster, None, FromTrigger - with caps, conditions, and health-based limits
    • Delivery: Direct, Projectile, Meteor, Cloud, ShootArrow, StashEffect, Custom - with delays and multi-placement
    • Projectile Features: Homing, ricochet, bounce, pierce, chain reactions, divergence, custom hitboxes
    • Impact Actions: Damage, Heal, StatusEffect, Fire, Teleport, Spawn, Cooldown, Aggro, Custom
    • Conditional Logic: Target modifiers, impact filters, chance-based execution, entity type conditions
    • Cost System: Exhaust, items/runes, cooldowns, durability, status effect consumption, with batching
    • Equipment Sets: Set bonuses providing spells, attributes, and special abilities

Fancy audio and visuals

  • ๐Ÿ”ˆ Advanced sound system: casting start/loop, release, impact, travel sounds with randomization
  • โœจ Sophisticated particle system with shapes, entity following, scaling, and custom magical particles
  • ๐ŸŽจ Custom Item/Block models for projectiles, status effects, and spell clouds with BlockBench support
  • ๐Ÿคธ Player animations at all spell stages with pitch control and ranged weapon animation support
  • ๐Ÿ’ก Dynamic lighting integration (LambDynamicLights) for magical illumination
  • ๐ŸŒˆ Customizable beam rendering with colors, textures, width, and flow effects
  • ๐Ÿ“ Area effect visualization with ground indicators and range-scaled particles

In game features

  • ๐Ÿ”ง Spell selection and casting visible on HUD (fully player configurable)
  • ๐Ÿ˜Œ QoL features: automatic spell cast release, client prediction, smart targeting
  • โ›“๏ธ Spell Binding Table for adding spells to weapons and creating spell books
  • ๐Ÿ“œ Spell Scroll system with creative tab generation and dungeon loot integration
  • ๐ŸŽ’ Equipment integration: Spell books, trinket slots (Trinkets/Accessories), automatic weapon detection
  • โšก Spell Infinity enchantment with configurable item tag support
  • ๐ŸŽฎ Commands: /spell_cooldowns for server administration and debugging
  • ๐Ÿ’ฐ Advanced loot system with spell_bind_randomly function for dynamic spell assignment

Developer & Mod Integration

  • ๐Ÿ”Œ Extensive mod compatibility: Better Combat, Combat Roll, FTB Teams, Shoulder Surfing, and more
  • ๐Ÿ“Š Comprehensive event system for spell casting, healing, and projectile lifecycle
  • ๐Ÿ—๏ธ Custom handler registration for delivery methods and impact actions
  • ๐ŸŽฏ Entity predicate system for complex targeting conditions
  • ๐Ÿ”ง Performance optimizations: batching, scheduling, client-side prediction
  • ๐Ÿ“ Data generation framework for programmatic spell creation and validation
  • ๐ŸŒ Multi-platform support (Fabric & NeoForge) with unified API