SpawnTntSpell - MomoPewpew/MagicSpells GitHub Wiki

Source Code

spell-class: ".targeted.SpawnTntSpell"

Description:

A targeted spell that spawns TNT at the target location.

Configuration:

Option Description Default Value
fuse Fuse time (in ticks). 20
velocity Velocity of the tnt. 0
up-velocity Up velocity of the tnt. 0
cancel-gravity Should the tnt cancel gravity? false
cancel-explosion Should the tnt cancel its explosion? false
prevent-block-damage Prevent block damage? false
spell Sub-spell to cast at the TNT's explode location. ""

Example:

tnt:
    spell-class: ".targeted.SpawnTntSpell"
    range: 20
    fuse: 40
    velocity: 0
    preven-block-damage: true