VolleySpell - TheComputerGeek2/MagicSpells GitHub Wiki
spell-class: ".targeted.VolleySpell"
targeting
cast argument values:
Value | Supported |
---|---|
entity |
false |
location |
true |
entity_from_location |
true |
Spell Effect Positions:
projectile
- Plays the effect at every arrow's position.casterprojectile
- Plays the effect from the caster towards the arrow's location.
Description:
A targeted spell that shoots a large number of arrows at a targeted block.
Configuration:
Since 4.0 Beta 13 these options support dynamic values through numeric or string expressions.
Option | Description | Type | Default |
---|---|---|---|
fire |
Defines how long to set the targets on fire. | Integer | 0 |
speed |
The velocity to apply to the arrows shot. | Float | 20 |
arrows |
The amount of arrows to shoot in total. | Integer | 10 |
pierce-level |
Since 4.0 Beta 16. Specifies how many entities the arrow can pierce through. It must be between 0 and 127 . |
Integer | 0 |
spread |
How wide a spray the arrows should cover. | Float | 150 |
remove-delay |
How long to wait before erasing the arrows that land in the ground. | Integer | 0 |
shoot-interval |
Time between arrows firing, in ticks. | Integer | 0 |
knockback-strength |
Removed since 4.0 Beta 16 in favour of weapon . Strength of the knockback. |
Integer | 0 |
damage |
Damage dealt by arrows. | Double | 4 |
y-offset |
Start height offset of the location. | Double | 3 |
gravity |
Whether to apply gravity to the arrows or not. | Boolean | true |
critical |
Should the arrow have a critical effect? | Boolean | false |
no-target |
Whether to require a target for the spell. | Boolean | false |
power-affects-speed |
Whether power should affect the speed the arrows fly. | Boolean | false |
power-affects-arrow-count |
Defines whether power should affect how many arrows get fired. | Boolean | true |
resolve-options-per-arrow |
Since 4.0 Beta 13. Defines expression evaluation behaviour. | Boolean | false |
weapon |
Since 4.0 Beta 16. Specifies an item to consider as the weapon for the spawned arrows. Enchantments will generally function as normal, except for the piercing enchantment. Use the pierce-level option instead. |
Magic Item | |
arrow-item |
Since 4.0 Beta 16. Sets the pickup item for the arrows. Note that Volley arrows cannot normally be picked up, but this option is there for other plugins. | Magic Item | |
color |
Since 4.0 Beta 16. Defines the color of this arrow's particles. | Color | |
potion-type |
Since 4.0 Beta 16. Defines the base potion applied by the arrow. | Potion Type | |
potion-effects |
Since 4.0 Beta 16. Defines the potion effects applied by this arrow. | Potion Effect List |
Example:
volley:
spell-class: ".targeted.VolleySpell"
description: Send a volley of arrows to your targeted location.
cast-item: blaze_rod
cooldown: 45
range: 30
arrows: 10
speed: 20
spread: 150
shoot-interval: 0
cost:
- mana 20
- arrow 2
str-cost: 20 mana and 2 arrows
str-cast-self: You fire a volley of magic arrows.
str-cast-others: "%a fires a volley of arrows."
str-no-target: No target found.