Adding Custom Impacts to Spells
Use theCUSTOM impact type with the specific handler identifier:
Knockback & Displacement
Knock Up
Knocks the target upward with scalable height.Handler:
more_rpg_classes:knock_upIntent: HARMFULScaling: Configurable height multiplierKnock Up (Fixed)
Knocks the target upward with a fixed height of 0.75 Y-velocity.Handler:
more_rpg_classes:knock_up_fixedIntent: HARMFULAdditional: Applies 20 ticks of Slow FallingRange Scaled Knockback
Knockback that increases the closer the target is to the caster.Handler:
more_rpg_classes:range_scaled_knockbackIntent: HARMFULScaling: Inverse distance scalingTrembling
Throws the target around in random directions.Handler:
more_rpg_classes:tremblingIntent: HARMFULEffect: Chaotic multi-directional knockbackKnock Up Fixed Implementation
Pull Mechanics
Pull to Caster (Direct)
Instantly pulls the target directly in front of the caster.Handler:
more_rpg_classes:pull_to_caster_directIntent: HARMFULUse Case: Execute abilities, melee gap closersPull to Caster (Slow)
Slowly pulls the target toward the caster over time.Handler:
more_rpg_classes:pull_to_caster_slowIntent: HARMFULUse Case: Channeled spells, sustained CCPull impacts are ideal for creating crowd control chains or setting up combos with melee abilities.
Dash & Movement
Forward Dash (Range)
The caster dashes forward based on spell range value.Handler:
more_rpg_classes:forward_dash_rangeIntent: N/A (movement)Scaling: Uses range value from spell.jsonBackward Dash (Fixed)
The caster dashes backward for a fixed distance.Handler:
more_rpg_classes:backward_dash_fixedIntent: N/A (movement)Use Case: Escape abilities, kitingBackward Dash (Range)
The caster dashes backward based on spell range value.Handler:
more_rpg_classes:backward_dash_rangeIntent: N/A (movement)Scaling: Uses range value from spell.jsonRush Forward to Target
The caster rapidly travels forward to the target’s location.Handler:
more_rpg_classes:rush_forward_to_targetIntent: N/A (movement)Use Case: Charge abilities, gap closersRange-Based Dash Example
Special Mechanics
Lightning Strike
Summons a friendly lightning entity that won’t damage allies or set fires.Handler:
more_rpg_classes:lightningIntent: HARMFULSpecial: Server-side only, spawns at target’s block positionStop Arrows
Checks for arrows near the target and sets their velocity to 0.Handler:
more_rpg_classes:stop_arrowsIntent: N/A (utility)Use Case: Defensive abilities, arrow shieldsFrozen Ticks
Adds frozen entity ticks to the target.Handler:
more_rpg_classes:frozen_ticksIntent: HARMFULUse Case: Frost-themed crowd controlLightning Strike Implementation
Advanced Damage
Damage According to Missing Health
Deals damage based on target’s missing health percentage with spell power scaling.Handler:
more_rpg_classes:damage_according_to_missing_healthIntent: HARMFULDamage Formula: School Attribute × Missing Health MultiplierMultipliers:- Above 50% HP: 0.25×
- Below 50% HP: 1.0×
- Below 25% HP: 1.75×
Missing Health Damage Implementation
Complete Impact List
| Handler ID | Type | Description |
|---|---|---|
knock_up | Knockback | Scalable upward knockback |
knock_up_fixed | Knockback | Fixed 0.75 Y-velocity knock up |
range_scaled_knockback | Knockback | Stronger knockback at close range |
trembling | Knockback | Random directional knockback |
pull_to_caster_direct | Pull | Instant pull to caster |
pull_to_caster_slow | Pull | Gradual pull over time |
forward_dash_range | Movement | Forward dash scaled by spell range |
backward_dash_fixed | Movement | Fixed backward dash |
backward_dash_range | Movement | Backward dash scaled by spell range |
rush_forward_to_target | Movement | Fast travel to target |
lightning | Special | Summon friendly lightning |
stop_arrows | Utility | Freeze arrow velocity |
frozen_ticks | CC | Add frozen entity ticks |
damage_according_to_missing_health | Damage | Execute-style damage |
Combining Multiple Impacts
You can combine custom impacts with standard Spell Engine impacts:Configuration
Some impacts have configurable values in the mod’s config file:custom_spell_fixed_impact_knock_up- Y-velocity for fixed knock up (default: 0.75)custom_spell_impact_damage_to_missing_health_above_50- Multiplier above 50% HP (default: 0.25)custom_spell_impact_damage_to_missing_health_under_50- Multiplier below 50% HP (default: 1.0)custom_spell_impact_damage_to_missing_health_under_25- Multiplier below 25% HP (default: 1.75)
All custom spell impacts are registered and available immediately after mod initialization. See the source files in
net.more_rpg_classes.custom.spell_impacts for implementation details.