sets thorny - magemonkeystudio/divinity GitHub Wiki
๐ฟ thorny.yml
This file defines the Thorny set, a single-item set that grants a passive bonus when equipped. It uses the prefix system to identify matching gear and applies a thornmail effect through item stats.
๐ File Location
plugins/Divinity/modules/sets/items/thorny.yml
๐งพ Configuration
name: '&6Prefix Bonus'
prefix: 'Thorny'
suffix: ''
color:
active: '&e'
inactive: '&8'
elements:
barbaricsplinteredsword:
materials:
- WOODEN_SWORD
name: 'Barbaric %prefix% Sword'
bonuses:
by-elements-amount:
'1':
lore:
- '&6- &eThornmail: &f2'
item-stats:
THORNMAIL: 20.0
damage-types: {}
defense-types: {}
potion-effects: {}
๐ Explanation of Settings
Key | Description |
---|---|
prefix |
The "Thorny" prefix is inserted into the item name using %prefix% and used to identify the item as part of the set. |
elements |
Defines the set item: |
barbaricsplinteredsword
is aWOODEN_SWORD
named"Barbaric Thorny Sword"
. | |color.active
/inactive
| Controls the lore color shown when the set bonus is active or incomplete. |
๐งฉ Set Matching Logic
This is a one-item set, meaning the bonus is activated as soon as the item is equipped. The set is identified by the presence of the "Thorny"
prefix in the item's name.
๐ 1-Piece Bonus
When the sword is equipped:
- A lore line is added:
Thornmail: 2
- The player gains
THORNMAIL: 20.0
in item stats
Other sections like damage-types
, defense-types
, and potion-effects
are unused in this case.
๐ The
THORNMAIL
stat typically reflects a reactive damage mechanicโdamaging attackers when hit.