Skip to content

Volley Spell

MomoPewpew edited this page Dec 9, 2023 · 8 revisions

Source Code

spell-class: ".targeted.VolleySpell"

A targeted spell that shoots a large number of arrows at a targeted block.

Configuration:

Option Description Default Value
fire How long to set the targets on fire. 0
speed The velocity to apply to the arrows shot. 20
arrows The amount of arrows to shoot in total. 10
spread How wide a spray the arrows should cover. 150
remove-delay How long to wait before erasing the arrows that land in the ground. 0
shoot-interval Time between arrows firing, in ticks. 0
knockback-strength Strength of the knockback. 0
damage Damage dealt by arrows. 4
y-offset Start height offset of the location. 3
add-pitch How much extra pitch should be added to the fired arrows. 0
gravity Whether to apply gravity to the arrows or not. true
critical Should the arrow have a critical effect? false
no-target Whether to require a target for the spell. false
power-affects-speed Whether power should affect the speed the arrows fly at. false
power-affects-arrow-count Whether power should affect how many arrows get fired. true

Example:

volley:
    spell-class: ".targeted.VolleySpell"
    name: volley
    spell-icon: bow
    description: Send a volley of arrows at 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.
Clone this wiki locally