sets slashingaxe - magemonkeystudio/divinity GitHub Wiki
๐ช slashingaxe.yml
This file defines the Slashing Axe set. When both matching elements are equipped, the player gains a slashing damage bonus. The set uses the prefix "Slashing"
to group related items together.
๐ File Location
plugins/Divinity/modules/sets/items/slashingaxe.yml
๐งพ Configuration
name: '&6Prefix Bonus'
prefix: 'Slashing'
suffix: ''
color:
active: '&e'
inactive: '&8'
elements:
slashingwoodenlightaxe:
materials:
- GOLDEN_HELMET
name: '%prefix% Wooden Light Axe'
slashingwoodenlightaxei:
materials:
- GOLDEN_CHESTPLATE
name: '%prefix% Wooden Light Axe'
bonuses:
by-elements-amount:
'2':
lore:
- '&6- &eSlashing Damage: &f+2'
item-stats: {}
damage-types:
damage_slashing: 5
defense-types: {}
potion-effects: {}
๐ Explanation of Settings
Key | Description |
---|---|
prefix |
All items in this set share the prefix "Slashing" which is inserted into their names using %prefix% . |
elements |
Defines the set items and their materials: |
slashingwoodenlightaxe
:GOLDEN_HELMET
slashingwoodenlightaxei
:GOLDEN_CHESTPLATE
Both items have the same name and prefix and will be recognized as part of the same set. | |color.active
/inactive
| Controls how the set bonus appears in item lore when active or not fully equipped. |
๐งฉ Set Matching Logic
The system dynamically constructs the display names of the items using the defined prefix
. When both items are equipped, they are counted as a full set due to the shared prefix and name:
"Slashing Wooden Light Axe"
from a golden helmet"Slashing Wooden Light Axe"
from a golden chestplate
Despite being different materials, the shared name and prefix bind them into a set.
๐ 2-Piece Bonus
When both elements are equipped:
- A lore line is added:
Slashing Damage: +2
- The player gains
+5
slashing damage viadamage-types.damage_slashing
All other bonus sections (item-stats
, defense-types
, potion-effects
) are unused here.