SpawnTntSpell - TheComputerGeek2/MagicSpells GitHub Wiki

Source Code

spell-class: ".targeted.SpawnTntSpell"

targeting cast argument values:

Value Supported
entity false
location true
entity_from_location false

Spell Effect Positions:

  • projectile - Plays the effect at the TNT's position.
  • casterprojectile - Plays the effect from the caster towards the projectile's location.
  • blockdestruction - Plays the effect on every block destroyed by the TNT.

Description:

A targeted spell that spawns TNT at the target location.

Configuration:

Since 4.0 Beta 13 some of these options support dynamic values through numeric or string expressions.

Option Description Type Default Supports expressions
fuse Fuse time (in ticks). Integer 20 true
velocity Velocity of the TNT. Float 0 true
up-velocity Up velocity of the tnt. Float 0 true
cancel-gravity Defines if the tnt should cancel gravity. Boolean false true
cancel-explosion Defines if the tnt should cancel its explosion. Boolean false true
prevent-block-damage Defines if block damage should be prevented. Boolean false true
spell Sub-spell to cast at the TNT's explode location. String false

Example:

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