Throw Block Spell - TheComputerGeek2/MagicSpells GitHub Wiki
spell-class: ".instant.ThrowBlockSpell"
Value | Supported |
---|---|
entity |
false |
location |
true |
entity_from_location |
false |
-
projectile
- Plays the effect at the block's location. -
casterprojectile
- Plays the effect from the caster towards the block's location. -
blockdestruction
- Plays the effect at the block's position when the spell ends.
Throws a block of the given type (anvil by default), which turns into a regular block when it lands.
Since 4.0 Beta 13 some of these options support dynamic values through numeric or string expressions.
Option | Description | Type | Default | Supports expressions |
---|---|---|---|---|
block-type |
The block to throw. You can instead use "primedtnt:<fuseTicks>" , which also supports expressions. |
String | "anvil" |
true |
velocity |
The velocity of the thrown block. | Float | 1.0 |
true |
y-offset |
The y-offset of the start location. | Float | 0 |
true |
vertical-adjustment |
An adjustment to how high the block flies. | Float | 0.5 |
true |
rotation-offset |
Which direction to throw the block, in degrees. A value of 0 is forward, 180 is backward, etc. | Float | 0 |
true |
apply-spell-power-to-velocity |
Whether to apply the Spell Power for this spell to the velocity. | Boolean | false |
true |
gravity |
Whether gravity should be applied to the thrown block. | Boolean | true |
true |
drop-item |
Whether to drop an item if the block is unable to land properly. | Boolean | false |
true |
remove-blocks |
If this is true, the thrown blocks will be removed shortly after they have landed. | Boolean | false |
true |
prevent-blocks |
Completely prevents blocks from spawning. | Boolean | false |
true |
call-target-event |
Whether being hit by a falling block should count as being targeted by this spell. | Boolean | true |
true |
check-plugins |
Whether to attempt to alert other plugins that this damage is being caused by the casting player. | Boolean | false |
true |
ensure-spell-cast |
If this is true, the plugin will constantly monitor the thrown block to make sure the spell goes off. This may harm performance, so if you don't need this feature you can turn it off. | Boolean | true |
true |
power-affects-damage |
Since 4.0 Beta 13. | Boolean | true |
true |
sticky-blocks |
If this is true, it will cause blocks to “stick” to walls, rather than hit them and fall. | Boolean | false |
true |
spell-on-land |
Sub-spell to cast when the block lands. | Boolean | false |
false |
anvil:
spell-class: ".instant.ThrowBlockSpell"
cooldown: 10
cast-item: blaze_rod
description: Throws an anvil.
block-type: anvil
velocity: 1.0
rotation-offset: 0
vertical-adjustment: 0.5
drop-item: false
remove-blocks: false
call-target-event: true
cost:
- mana 25
- anvil 1
str-cost: 25 mana and 1 anvil