FireballSpell - TheComputerGeek2/MagicSpells GitHub Wiki
spell-class: ".targeted.FireballSpell"
targeting cast argument values:
| Value | Supported | 
|---|---|
entity | 
false | 
location | 
false | 
entity_from_location | 
true | 
Spell Effect Positions:
projectile- Plays the effect at the fireball's position.casterprojectile- Plays the effect from the caster towards the fireball's location.
Description:
A targeted spell that launches a fireball from the player.
Configuration:
Since 4.0 Beta 13 these options support dynamic values through numeric or string expressions.
| Option | Description | Type | Default | 
|---|---|---|---|
explosion-size | 
How large the explosion should be. Typical use won't require a number higher than 3. | Float | 0 | 
damage-multiplier | 
Defines how much damage the fireball should do. Not a set number, the actual amount of damage scales exponentially with the number. | Double | 0 | 
power-affects-damage-multiplier | 
Since 4.0 Beta 13. | Boolean | true | 
no-explosion-damage | 
Defines how much damage to do if the explosion has been disabled. | Double | 5 | 
power-affects-no-explosion-damage | 
Since 4.0 Beta 13. | Boolean | true | 
no-explosion-damage-range | 
The area to deal the damage of the no-explosion-damage option. | Double | 3 | 
no-fire | 
Whether the fireball should cause fires where it hits. | Boolean | true | 
no-explosion | 
Whether the fireball should cause an explosion where it hits. | Boolean | true | 
check-plugins | 
Whether the spell should check damage-related plugins. | Boolean | true | 
small-fireball | 
If true, will use a blaze fireball instead of a ghast fireball. | Boolean | false | 
gravity | 
Whether or not to apply gravity to the fireball. | Boolean | false | 
no-explosion-effect | 
Whether to completely disable the resulting explosion from the fireball. | Boolean | true | 
require-entity-target | 
Whether or not to require a target. | Boolean | false | 
use-relative-cast-location-offset | 
Whether or not to use relative cast position. | Boolean | false | 
use-absolute-cast-location-offset | 
Whether or not to use absolute cast position. | Boolean | false | 
relative-cast-position-offset | 
The offset of the fireball relative to the caster. | Vector | |
absolute-cast-position-offset | 
Absolute offset of the fireball from the caster. | Vector | 
Example:
fireball:
    spell-class: ".targeted.FireballSpell"
    name: fireball
    spell-icon: fireball
    description: Throw a fiery ball of destruction.
    cast-item: blaze_rod
    cooldown: 5
    range: 30
    require-entity-target: false
    can-target: players,monsters
    check-plugins: true
    damage-multiplier: 3
    small-fireball: true
    no-fire: false
    no-explosion: false
    no-explosion-effect: true
    no-explosion-damage: 5
    no-explosion-damage-range: 3
    cost: 
        - mana 10
    str-cost: 10 mana
    str-no-target: You cannot throw a fireball there.
    str-cast-self: You throw a fiery ball of destruction!
    str-cast-others: "%a throws a fiery ball of destruction!"