π What is this?
Jester’s Spell Framework is a modular, JSON-based spell system that lets you create complex abilities without writing Java code.
Build spells using:
- π― targeting logic
- π§ filters (ally / enemy / self)
- π conditions (health, mana, effects)
- π₯ chained and conditional effects
All through simple JSON files.
βοΈ Core Philosophy
Spells should be data, not code.
β No recompiling
β Easy balancing
β Modpack-friendly
β Expandable
π§ Features
π― Advanced Targeting
forward_box→ directional skillshotsarea_around_caster→ aura effectsarea_around_target→ explosion on targetarea_on_hit_position→ impact AoEself→ self-cast
π§ Target Filtering
Control who gets hit:
allselfalliesenemies
π Target Predicates (Smart Targeting)
Only affect entities that match conditions:
- β€οΈ health thresholds
- π΅ mana thresholds
- π§ͺ has / missing effects
- π§ player-only checks
- π₯ on-fire checks
Examples:
- Heal only low HP allies
- Buff only players missing haste
- Damage only burning enemies
π₯ Effects System
Mix multiple effects into one spell:
βοΈ Damage & Combat
damage_targetignite_targetknockback_target
π§ͺ Buffs & Debuffs
apply_mob_effect_targetremove_mob_effect_targetcleanse_target
β€οΈ Healing & Defense
heal_targetshield_targetremove_shield_target
π΅ Resource System (Mana)
resource_restore_targetresource_drain_targetresource_transfer_targetresource_leech_target
π§© Conditional Effects
Run effects only when conditions are met:
{
"type": "conditional_effect",
"conditions": [...],
"effects": [...]
}
"type": "conditional_effect",
"conditions": [...],
"effects": [...]
}
Examples:
- π Execute enemies below 30% HP
- π΅ Restore mana only if low
- π§ͺ Apply buffs only if missing
π Nested Effects
- Chain multiple effects
- Build layered spells
- Combine AoE + conditions + multi-effects
π§ͺ Built-in Validation
- β Invalid configs are caught at load
- β οΈ Clear error messages
- π‘ Prevents broken spells
π‘οΈ Shield System
Uses absorption hearts as shields:
- β
shield_target→ add shield - β
remove_shield_target→ remove shield
π§° Included Tooling
π₯οΈ HTML Spell Builder
Create spells visually:
β Checkboxes for effects
β Input fields for values
β Built-in validation structure
β JSON preview
β π₯ Download ready-to-use files
Perfect for:
- modpack creators
- rapid iteration
- testing ideas