module arrows - magemonkeystudio/divinity GitHub Wiki
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.
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
- 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.
The following example arrow files are included by default and explained in detail on their own pages:
- arrow_explosive.yml
- arrow_flame.yml
- arrow_pierce.yml
- snowball_explosive.yml
- uncommon-magic-ammunition.yml
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 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.