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 a WOODEN_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.


๐Ÿ”— Back to Hub

โ† Return to Sets Module