DestroySpell - TheComputerGeek2/MagicSpells GitHub Wiki

Source Code

spell-class: ".targeted.DestroySpell"

targeting cast argument values:

Value Supported
entity false
location true
entity_from_location true

Spell Effect Positions:

  • projectile - Plays the effect at the falling block's position.
  • casterprojectile - Plays the effect from the caster towards the falling block's location.

Description:

Targeted spell. This spell causes major destruction at the target location by throwing blocks into the air. If you are concerned about players destroying your world, do NOT use this spell. This spell does NOT obey plugin restrictions such as WorldGuard. Again, this spell is VERY, VERY DESTRUCTIVE. Use at your own risk.

Configuration:

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

Option Description Type Default Supports Expressions
vert-radius Vertical radius Integer 3 true
horiz-radius Horizontal radius Integer 3 true
falling-block-damage The amount of damage caused when a falling block lands on a player. Float 0 true
resolve-damage-per-block Since 4.0 Beta 13 Defines expression evaluation behaviour. Boolean false true
falling-block-max-height Since 4.0 Beta 13. The maximum amount of damage caused. Integer 0 true
resolve-max-height-per-block Since 4.0 Beta 13 Defines expression evaluation behaviour. Boolean false true
velocity Velocity Double 0 true
resolve-velocity-per-block Since 4.0 Beta 13 Defines expression evaluation behaviour. Boolean false true
velocity-type Options: up, random, random_up, down, toward, away, none String none true
resolve-velocity-type-per-block Since 4.0 Beta 13 Defines expression evaluation behaviour. Boolean false true
prevent-landing-blocks If this is true, blocks will disappear rather than land on the ground. Boolean false false
block-types-to-throw A list of block materials to throw. If this is not defined, it will throw all solid blocks except bedrock. String false
block-types-to-remove A list of block materials to remove completely. If this is not defined, it will remove all non-solid blocks. String false

Example:

destroy:
    spell-class: ".targeted.DestroySpell"
    horiz-radius: 3
    vert-radius: 3
    velocity: 1
    velocity-type: randomup