DynamicArrows

7.7k Downloads

DynamicArrows

After seeing that MoArrows hadn't updated in a while and MagicArrows had stopped updating all together, I decided to take a stab at replacing them both in one, neat package (NOTE: I didn't use ANY of their code, I was simply inspired by their ideas). Introducing DynamicArrows, a plugin that gives every player a quiver of special arrows and enchantments to use.

Features

  • Each player is given a "quiver" that holds special arrows and arrow enchantments
  • Quivers can have a maximum amount of arrows (for realism's sake)
  • Each arrow/enchantment type can be enabled/disabled, given a cool-down, made infinite (so players don't have to purchase them to use them), and given a maximum amount that each player can have.
  • Cycling through arrows is as simple as punching with a bow in hand or punching with an arrow in hand (to cycle through enchantments).
  • Arrows/enchantments that a player doesn't have, that a player can't use, or that are cooling down won't show up when cycling, so you won't spend time trying to fire arrows you don't have or can't use.
  • (Currently) 8 arrow types and 7 enchantment types.
  • Use is extremely simple, players only have one optional command to check their quivers and admins set up shops simply by formatting a sign correctly.
  • Quick and straight-forward config.yml for easy setup.
  • Separate permissions nodes for enchantments and arrows (good for classes and ranks).

Types

Arrow

  • Stinger - Poison your enemy for a few seconds.
  • Bolt - Strikes a lightning bolt where the arrow lands.
  • Blast - Creates an explosion where the arrow lands.
  • Piercing - If a player is wearing armor, this arrow deals double damage.
  • Barbed - If a player is not wearing armor, this arrow deals double damage.
  • Blaze - Fires a flaming arrow that lights enemies on hit.
  • Slowing - Slow your enemy for a few seconds.
  • Heavy - Stun your enemy on hit (blindness and confusion)
  • Trap - Generate a small net of webs where the arrow lands that disappears after a few seconds.

Enchantments

  • Healing - Heals 5 hearts on hit.
  • Harming - Inflicts harming for a few seconds.
  • Freeze - Traps an enemy in (breakable) ice blocks, which disappear after a few seconds.
  • Pull - Teleports your enemy to you.
  • Transfusion - Deals and steals two hearts of damage.
  • Splash - Creates water at the landing point that disappears after a few seconds.
  • Barrage - Drops 30 arrows from the sky surrounding the landing point.

Permissions

Before 1.1

  • DA.arrows - Use special arrows.
  • DA.magic - Use enchantments.
  • DA.admin - Build/break shop signs.

1.1 and later

  • DA.arrows.use - Use special arrows.
  • DA.arrows.[type] - Use particular special arrow. Can be DA.arrows.* (Example: DA.arrows.Stinger)
  • DA.magic.use - Use enchantments.
  • DA.magic.[type] - Use particular enchantment. Can be DA.magic.* (Example: DA.magic.Healing)
  • DA.admin - Build/break shop signs.

Config

General

  • Default Quiver Size: Integer - The default amount of arrows a new quiver should hold (0 for infinite space).

Type

  • Enabled: True/False - Whether or not this type/enchantment is enabled for use.
  • Infinite: True/False - Whether or not a player can infinitely use this type (if false, player must purchase type to use).
  • Max Held: Integer - The max amount of this arrow a player can have at one time (0 for infinitely many).
  • Cool-Down: Integer - The time in seconds it takes this arrow to cool before it can be used again.

Commands

  • /quiv - Display the amount of the currently selected arrow and enchantment your quiver contains.
  • /quiv arrows - Display the amounts of all arrow types in your quiver.
  • /quiv enchants - Display the amounts of all enchantment types in your quiver.
  • /quiv space - Display the amount of arrows your quiver can still hold before being full.

Shop Creation

  • Line 1: [DynArrows]
  • Line 2: (Type)
  • Line 3: (Cost):(Amount)
  • Line 4: (Anything)

Example:

  • [DynArrows]
  • Blaze
  • 50:4
  • Fire!

Dependencies

  • Vault
  • Some Permissions Plugin

Special Thanks

Thanks to @TheFlannelBeard for inspiring and funding this plugin! See it in action on his amazing PvP server, Fellcraft (184.171.251.179). Play as a Fellmember to make use of DynamicArrows and my other plugins SpringStep and DynamicFight! Also thanks to the original authors of MoArrows and MagicArrows for inspiration!