Hello everybody, this update was made possible thanks to
MrYoup, here is his changelog:
The spell mechanic apply as parent of energybeam, witherskull, thor and fireball.
This mechanic handles configuration for Timing and MaxCharges.
Max charges is added without altering previous versions of mechanics. If absent from items configuration file then infinite amount of charges is taken into account, not altering already existing mechanics.
If charges is specified:
-1 makes spell have infinite charges
X charges makes item usable X times before it disappear. Additionnal Lore is insertet at the begining to show how many charges are left on the item.
Fireball is a very simple fireball spell spawning a fireball travelling in the pointed direction at launch.
The speed and radius is configurable in addition to timing and charges provided by the spell class.
I hope you'll like it, thanks again to every contributor!