← Назад к ресурсам

Spell Engine

🪄 Data driven magic library

Modrinth game-mechanics library magic

Описание

![](https://cdn.modrinth.com/data/XvoWJaA2/images/28a14b6cf2aef9e3d5528e1c1a98f91f4633c5dc.png "") ------------------ ![Environment: Client](https://img.shields.io/badge/CLIENT%20SIDE%20INSTALLATION-REQUIRED-ecebe6?labelColor=263768&style=for-the-badge) ![Environment: Server](https://img.shields.io/badge/SERVER%20SIDE%20INSTALLATION-REQUIRED-ecebe6?labelColor=263768&style=for-the-badge) [![Discord](https://img.shields.io/discord/973561601519149057.svg?label=&logo=discord&logoColor=ffffff&color=7389D8&labelColor=6A7EC2&style=for-the-badge)](https://discord.gg/KN9b3pjFTM) 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. # 📦 Installation 🎁 Installation via [Modrinth app](https://modrinth.com/app) is strongly recommended, to automatically resolve all required mods. ### Required - [Cloth Config](https://modrinth.com/mod/cloth-config "") - [Player Animator](https://modrinth.com/mod/playeranimator "") - [Spell Power Attributes](https://modrinth.com/mod/spell-power "") Additionally on Fabric: - [Fabric API](https://modrinth.com/mod/fabric-api) - slot mod: [Trinkets](https://modrinth.com/mod/trinkets) or [Accessories](https://modrinth.com/mod/accessories) Additionally on NeoForge: - [Forgified Fabric API](https://modrinth.com/mod/forgified-fabric-api) - slot mod: [Accessories](https://modrinth.com/mod/accessories) # ⭐️ Content made with Spell Engine [![Archers](https://cdn.modrinth.com/data/XIpMGI6r/images/cd19a95a79f1157b33f31818aa615a280b206912.png "Archers")](https://modrinth.com/mod/archers "") [![Paladins](https://cdn.modrinth.com/data/XIpMGI6r/images/3f19359bfd7521ba17bec818f125e87e09ef277e.png "Paladins")](https://modrinth.com/mod/paladins-and-priests "") [![Wizards](https://cdn.modrinth.com/data/XIpMGI6r/images/a7da965aa108daf95c10448c01423be49ce2338d.png "Wizards")](https://modrinth.com/mod/wizards "") [![Rogues](https://cdn.modrinth.com/data/XIpMGI6r/images/278d8c941af6dc763cf714b9f36f8b8366a60eb9.png "Rogues")](https://modrinth.com/mod/rogues-and-warriors "") [![Skill Tree](https://cdn.modrinth.com/data/XIpMGI6r/images/3bc519f14fb3e8496f730e7fae961c0481c7368d.png)](https://modrinth.com/mod/skill-tree "Skill Tree") [![Jewelry](https://cdn.modrinth.com/data/XIpMGI6r/images/747102d582732b8defa50a2c925c7d5a6f87d009.png "Jewelry")](https://modrinth.com/mod/jewelry "") [![Relics](https://cdn.modrinth.com/data/XIpMGI6r/images/a62c4eb9400d2ee8349078125ba0ab8b22c4424e.png)](https://modrinth.com/mod/relics-rpg "Relics") [![Arsenal](https://cdn.modrinth.com/data/XIpMGI6r/images/59a1006dfd980ddb35b96cfd86d7c367dcde2a2b.png)](https://modrinth.com/mod/arsenal-rpg-series "Arsenal") [![Armory](https://cdn.modrinth.com/data/XIpMGI6r/images/135abbb9c6a50349714cbdc30d98b443fe28abf6.png)](https://modrinth.com/mod/armory-rpg-series "Armory") ## 🤝 Made by partners [![Anarchy](https://cdn.modrinth.com/data/XvoWJaA2/images/82af4e5b72525719870d4c0fb9a4354df651a66f.png)](https://modrinth.com/mod/anarchy-rpg "Anarchy") [![Mercenaries](https://cdn.modrinth.com/data/XvoWJaA2/images/6e92ba91e60dffc4b25997210c4e6d0f3e2c2c0b.png)](https://www.curseforge.com/minecraft/mc-mods/mercenaries-and-artificers "Mercenaries") [![Oathsworn](https://cdn.modrinth.com/data/XvoWJaA2/images/307e3d8edc3b58464f8f5c52bb13fd8a701de3fd.png)](https://www.curseforge.com/minecraft/mc-mods/oathsworn-paladins "Oathsworn") [![Archer Expansion](https://cdn.modrinth.com/data/XvoWJaA2/images/60bdae137bd2eb540291dcd1cc700000111dc55d.png)](https://modrinth.com/mod/archers-expansion "Archer Expansion") [![Elemental Wizards](https://cdn.modrinth.com/data/XvoWJaA2/images/5a38c115a738598f3433e8f4ee7844062b322d0b.png)](https://modrinth.com/mod/elemental-wizards-rpg "Elemental Wizards") [![Berserker](https://cdn.modrinth.com/data/XvoWJaA2/images/1fceb26f1ab45aaa3bc4ec1cd012cc1322451926.png)](https://modrinth.com/mod/berserker-rpg-class "Berserker") [![Witcher](https://cdn.modrinth.com/data/XvoWJaA2/images/01f2d8cc4a33135190f0e82dbd9f5557dcd5dab5.png)](https://modrinth.com/mod/witcher-rpg-class "Witcher") [![Forcemaster](https://cdn.modrinth.com/data/XvoWJaA2/images/06e3a59096406e655c7d1335c88cfce2c6ce3409.png)](https://modrinth.com/mod/forcemaster-rpg-class "Forcemaster") [![Death Knights](https://cdn.modrinth.com/data/XIpMGI6r/images/cf9db2db218180f7f2c8c1d6a34aa4e8db955fae.png)](https://modrinth.com/mod/death-knights "Death Knights") # 📦 Built-in content ## 🗡️ Weapon skills 🪓 ![Weapon Skills](https://cdn.modrinth.com/data/XvoWJaA2/images/bca0f3f397fecf7ddaead46cb2a941ab3e06b449.png) Explore a variety of melee attack skills, each of them designed for a specific weapon type, with unique features: - detailed collision detection - momentum and sliding - fancy animations RPG Series content mods come with these skills assigned by default. Automatically assigned to third-party and vanilla weapons, based on item id or item tag membership. (Config file: `config/spell_engine/weapon_fallback.json`) # 🪄️ API Features Data driven API - 🗡️ Spells can be assigned to any weapon (data driven with automatic weapon compatibility) - 🔮 Spells deal damage based on [Spell Power](https://github.com/ZsoltMolnarrr/SpellPower) 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