module arrows - magemonkeystudio/divinity GitHub Wiki

๐Ÿน Arrows Module

The Arrows Module allows you to define custom projectile items like arrows or snowballs with dynamic behaviors, particle effects, skills, sounds, and conditional logic. These items are often used with bows or other launch mechanisms and can behave differently on flight or impact.


๐Ÿ“ Structure

The Arrows module consists of:

  • settings.yml โ€“ Global settings for the arrow system (e.g., velocity, gravity, sound).
  • items/ โ€“ Folder containing individual arrow definitions (*.yml files).
  • plugins/Divinity/item_stats/ammo.yml โ€“ Controls which projectile types (e.g., ARROW, SNOWBALL) are allowed.
    โ†’ See: item_stats-ammo

โš™ How It Works

  • Each arrow is a standalone item with attributes like name, lore, material, effects, damage, and visual/audio cues.
  • Arrow behavior can be split between:
    • on-fly-actions: While in motion.
    • on-hit-actions: When it collides with a target or block.

You can target:

  • Specific mobs or players.
  • Groups via radius.
  • The shooter or projectile itself.

๐Ÿงช Example Arrow Items

The following example arrow files are included by default and explained in detail on their own pages:


๐Ÿ’ฌ Commands

Command Description Permission
/arrows help Show help page divinity.arrows.help
/arrows get <id> [level] [amount] Get a module item divinity.arrows.get
/arrows give <player> <id> [level] [amount] Give a module item to a player divinity.arrows.give
/arrows drop <world> <x> <y> <z> <id> [level] [amount] Drop the specified item in the world divinity.arrows.drop
/arrows list [page] List all defined module items divinity.arrows.list
/arrows reload Reload the module divinity.arrows.reload

๐Ÿงฑ Allowed Projectile Types

Allowed projectile types for custom arrow items are defined in:

plugins/Divinity/item_stats/ammo.yml

Only projectile types listed in this file (e.g., ARROW, SNOWBALL, EGG) will function properly. Using unsupported types may result in items that cannot be fired or triggered.

๐Ÿ‘‰ See the item_stats-ammo page for detailed information.


๐Ÿ”— Return to Home

โ† Return to Home

โš ๏ธ **GitHub.com Fallback** โš ๏ธ