sets coldarmorset - magemonkeystudio/divinity GitHub Wiki
โ๏ธ coldarmorset.yml
This file defines the Cold Armor Set. When a player equips both items listed under the elements
section, the set bonus is activated, granting cold damage and displaying a lore line. Set identification is done using a prefix-based naming system.
๐ File Location
plugins/Divinity/modules/sets/items/coldarmorset.yml
๐งพ Configuration
name: '&6Prefix Bonus'
prefix: 'Cold'
suffix: ''
color:
active: '&e'
inactive: '&8'
elements:
coldironchestplate:
materials:
- IRON_CHESTPLATE
name: 'Iron %prefix% Chestplate I'
coldironleggings:
materials:
- IRON_LEGGINGS
name: 'Iron %prefix% Leggings I'
bonuses:
by-elements-amount:
'2':
lore:
- '&6- &eCold Damage: &f+1'
item-stats: {}
damage-types:
damage_cold: 1
defense-types: {}
potion-effects: {}
๐ Explanation of Settings
Key | Description |
---|---|
name |
The display name for this bonus group. |
prefix |
Set to "Cold" . Items using this set should include %prefix% in their display name to be considered part of this set. |
suffix |
Not used in this set (left empty). |
color.active / inactive |
Controls how the bonus lore appears when active or incomplete. |
๐งฉ How Set Matching Works
The elements
section defines which item types can belong to the set:
coldironchestplate
is anIRON_CHESTPLATE
named"Iron Cold Chestplate I"
coldironleggings
is anIRON_LEGGINGS
named"Iron Cold Leggings I"
Because both use %prefix%
and the global prefix is "Cold"
, the system dynamically constructs the full name. When both items are equipped, they trigger the 2-piece bonus.
๐ Bonus Activation
Under bonuses.by-elements-amount
:
- When 2 items are equipped, players gain:
+1
cold damage viadamage-types.damage_cold
- A lore line is added to the item(s):
&6- &eCold Damage: &f+1
Other bonus sections are defined but empty in this example: item-stats
, defense-types
, and potion-effects
.