fortify stone_essence - magemonkeystudio/divinity GitHub Wiki
πͺ¨ Fortify Stone: Essence
This fortify stone enhances items that are being socketed with Essences. It adds a chance to protect the item from destruction during socketing, depending on the level of the fortify item.
π File Location
Place this file at:
plugins/Divinity/modules/fortify/items/stone_essence.yml
π§Ύ Purpose
This stone is used to increase protection chance when socketing essences. If the socketing fails, this fortify stone can prevent the item from being destroyed β depending on the chance-by-level
.
π§ Configuration Explained
material: COAL
The base Minecraft item for this fortify stone.
name: 'Fortify Stone'
lore:
- '&7Fortifies the item when socketing &fEssences&7.'
This shows a tooltip to the player describing the stoneβs purpose.
enchanted: false
tier: common
The item does not glow and is labeled as common tier.
π Fortify Levels & Uses
level:
min: 1
max: 10
uses-by-level:
'1': 1
'5': 2
'10': 3
- Supports Fortify levels 1β10.
- Higher-level stones provide more uses before breaking.
π‘ Protection Bonus
protection:
modules:
- essences
chance-by-level:
'1': 15
'2': 20
...
'10': 60
- This stone only applies protection when socketing essences
- At level 10, it gives a 60% chance to prevent destruction on socketing failure
π― Target Requirements
target-requirements:
type:
- WEAPON
- ARMOR
level:
'1': '1:10'
'2': '11:20'
module:
- '*'
This fortify stone only works on:
- Items that are
WEAPON
orARMOR
- With a level between 1β20 (based on the fortify stoneβs level)
- Belonging to any module (
'*'
is a wildcard)
π§ͺ Usage Example
- The player applies this stone to an item.
- They attempt to socket an essence into that item.
- If socketing fails, this stone may prevent the item from being destroyed, based on its level.