Destroy Spell - MomoPewpew/MagicSpells GitHub Wiki
spell-class: ".targeted.DestroySpell"
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:
| Option | Description | Default Value |
|---|---|---|
vert-radius |
Vertical radius | 3 |
horiz-radius |
Horizontal radius | 3 |
falling-block-damage |
The amount of damage caused when a falling block lands on a player. | 0 |
velocity |
Velocity | 0 |
throw-chance |
The chance that the block is thrown. If a block does not pass this chance, it will get removed instead. Use this to reduce the latency on bigger DestroySpells. | 100 |
duration |
Amount of ticks after which the destroy is undone. This also makes the destroy subjected to the UndoDestroySpell. | 0 |
velocity-type |
Options: up, random, randomup, down, toward, away, none |
none |
prevent-landing-blocks |
If this is true, blocks will disappear rather than land on the ground. | false |
power-affects-radius |
Should spell power affect radius? | 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. | null |
block-types-to-remove |
A list of block materials to remove completely. If this is not defined, it will remove all non-solid blocks. | null |
block-types-to-ignore |
A list of block materials to ignore. | null |
affects-containers |
If this is false and no material types are specified, this spell will not affect containers. | false |
Example:
destroy:
spell-class: ".targeted.DestroySpell"
horiz-radius: 3
vert-radius: 3
velocity: 1
velocity-type: randomup