Custom projectile types can be defined and applied to items in kits. These items effectively become either weapons that shoot the custom projectile, or the item form of the custom projectile itself.
|Node containing the custom projectile definitions.|
|A custom projectile definition.||Projectile Sub-elements|
|Unique identifier used to reference this projectile from other places in the XML.||String|
|The display name of this projectile, used in "shot by" messages, etc.||String|
|Items are consumed when using them to shoot this projectile (making them more like grenades than guns).||true/false||true|
|The entity this projectile is materialized as.||Entity Type||Arrow|
|The amount of damage this projectile deals.||Half-hearts||0.0|
|The speed at which the projectile moves.||Meters/tick||1.0|
|The click action that fires the projectile.|
Accepts , or .
|The potion effects to apply to players hit by this projectile.||Potion Effect|
|PropertyFilter if/what blocks get destroyed when hit with this projectile.||Filter|
|Minimum time between each firing of this projectile.||Time Period|
|PropertyFilter if/what blocks get destroyed when hit with this projectile.||Filters|
|A potion effect to apply to players hit by this projectile.||Potion Effect|
Modifying Bow Projectiles
Bows can be modified to shoot a different projectile at a custom speed. The PGM plugin will calculate the damage the projectile does using the same formula as minecraft does for arrows. This means that a flying fish with a velocity of 40 will almost certainly kill you. Projectiles can also have custom potion effects which are applied to the target when it is hit.
NOTE: You can currently only modify all bow projectiles, this means no normal and custom bow at the same time.
|Node containing the modify bow projectile settings.||Bow Projectile Sub-elements|
|The entity to use as the bows projectile.||Entity Type|
|The velocity modifier of the bows projectile.||Number|
|A potion effect to apply to players hit by the bow projectile.||Potion Effect|
All the following projectiles are guaranteed to work. See mrapple/Bukkit Entity Spawning.md for a list of tested entities.
|Supported Entity Types|