Adding Custom Impacts to Spells
Custom impacts are added to yourspell.json files using the CUSTOM action type:
The
intent field can be either "HARMFUL" or "HELPFUL" depending on the nature of your spell impact.Available Custom Impacts
Movement & Knockback
Knock Up (Fixed)
Handler:more_rpg_classes:knock_up_fixed
Knocks the target upward with a fixed height of 0.75 Y-velocity and applies slow falling.
spell.json
Knock Up (Scalable)
Handler:more_rpg_classes:knock_up
Knocks the target upward with a scalable height based on spell configuration.
Range Scaled Knockback
Handler:more_rpg_classes:range_scaled_knockback
The closer the target is to the caster, the higher the knockback value.
spell.json
Pull & Push
Pull to Caster (Direct)
Handler:more_rpg_classes:pull_to_caster_direct
Pulls the target directly in front of the caster instantly.
spell.json
Pull to Caster (Slow)
Handler:more_rpg_classes:pull_to_caster_slow
Pulls the target slowly toward the caster. Ideal for channeled spells.
spell.json
Dash & Rush
Backward Dash (Fixed)
Handler:more_rpg_classes:backward_dash_fixed
The caster dashes backward for a fixed distance.
spell.json
Backward Dash (Range Scaled)
Handler:more_rpg_classes:backward_dash_range
The caster dashes backward. Distance is scaled with the range value in your spell.json.
Forward Dash (Range Scaled)
Handler:more_rpg_classes:forward_dash_range
The caster dashes forward. Distance is scaled with the range value in your spell.json.
Rush Forward to Target
Handler:more_rpg_classes:rush_forward_to_target
The caster travels quickly toward the target.
spell.json
Elemental Effects
Lightning Strike
Handler:more_rpg_classes:lightning
Summons a friendly lightning entity at the target’s location that won’t damage allies.
spell.json
Frozen Ticks
Handler:more_rpg_classes:frozen_ticks
Adds frozen entity ticks to the target.
spell.json
Special Effects
Damage According to Missing Health
Handler:more_rpg_classes:damage_according_to_missing_health
Deals damage based on the target’s missing health percentage:
- Above 50% health: 0.25x multiplier
- Under 50% health: 1.0x multiplier
- Under 25% health: 1.75x multiplier
Spell School Attribute * Missing Health Multiplier
spell.json
Trembling
Handler:more_rpg_classes:trembling
Throws the target around in random directions, creating a disorienting effect.
spell.json
Stop Arrows
Handler:more_rpg_classes:stop_arrows
Checks for arrows and sets their velocity to 0, effectively stopping them mid-flight.
spell.json
Combining Multiple Impacts
You can combine multiple impacts in a single spell for complex effects:spell.json
Implementation Reference
All custom impacts implement theSpellHandlers.CustomImpact interface and can be found in: