-
Notifications
You must be signed in to change notification settings - Fork 14
sets coldarmorset
goflishMC edited this page Jun 30, 2025
·
1 revision
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.
plugins/Divinity/modules/sets/items/coldarmorset.yml
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: {}| 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. |
The elements section defines which item types can belong to the set:
-
coldironchestplateis anIRON_CHESTPLATEnamed"Iron Cold Chestplate I" -
coldironleggingsis anIRON_LEGGINGSnamed"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.
Under bonuses.by-elements-amount:
- When 2 items are equipped, players gain:
-
+1cold 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.