Instant spell. This spell will fire a projectile and cause a spell effect where the projectile hits. Most spells of the “targeted” type can be used with this spell. Note that this will not charge reagents or trigger cooldowns for the spells it uses. Also, the reagents for this spell will always be charged and the cooldown activated, regardless of whether or not the projectile works successfully.
|projectile||The type of projectile. Options are arrow, snowball, egg, and enderpearl. For more information, see below.||arrow|
|velocity||The velocity of the projectile. Leaving it at 0 will use the default velocity.||0|
|apply-spell-power-to-velocity||Whether to apply the Spell Power for this spell to the velocity.||false|
|horizontal-spread||Increases projectile 'spread' (decreases accuracy) horizontally.||0|
|vertical-spread||Increases projectile 'spread' (decreases accuracy) vertically.||0|
|require-hit-entity||Whether the projectile must hit an entity in order to cause its effects.||false|
|cancel-damage||Whether to cancel normal projectile damage.||true|
|remove-projectile||Whether to remove the projectile once it has landed.||true|
|target-players||Whether this spell is allowed to hit players.||false|
|allow-target-change||Whether the targeted entity can be changed (for example, the reflect spell will attempt to change the target to the caster instead).||true|
|max-distance||The max distance the projectile can be fired before the spell effects are not allowed. Setting this to 0 means infinite distance.||0|
|spells||A list of spells to trigger when the projectile lands.||(none)|
|aoe-radius||If this is greater than 0, the spell will act as an area of effect spell instead. Rather than casting the spell(s) at the landing location of the projectile, it will cast the spell(s) on every entity in this range.||0|
|arrow||This should work fine in any situation.|
|snowball||This should work fine in any situation.|
|egg||This should work fine in any situation.|
|enderpearl||The enderpearl cannot be used to hit other entities, only the ground.|
|(item)||This is specified with an item id (i.e. don't use “item” use “331”). It can only be used to hit the ground and players.|
See the Meta Spell Options page for information on which targeted spells can be used with this spell. Some of them will work only on an entity (require-hit-entity must be true to use these), and the others will work on an entity or on the ground.
explosivearrow: spell-class: ".instant.ProjectileSpell" name: explosivearrow spell-icon: arrow description: Cause an explosion where an arrow lands cast-item: blaze_rod cooldown: 30 projectile: arrow velocity: 0 require-hit-entity: false cancel-damage: true remove-projectile: true max-distance: 25 spells: [explode] cost: - mana 25 - sulpher 1 - arrow 1 str-cost: 25 mana, 1 gunpowder, and 1 arrow str-cast-self: You fire an explosive arrow.