fortify stone_rune - magemonkeystudio/divinity GitHub Wiki
๐ฎ Fortify Stone: Runes
This Fortify Stone provides item protection during the Rune socketing process. It reduces the risk of item destruction when applying powerful runes to gear.
๐ File Location
Place this file at:
plugins/Divinity/modules/fortify/items/stone_rune.yml
๐งพ Purpose
This stone gives players a level-based chance to prevent item loss if rune socketing fails. It works only when the socketed module is runes
.
๐ง Configuration Breakdown
material: COAL
The Minecraft base item used for the stone.
name: 'Fortify Stone'
lore:
- '&7Fortifies the item when socketing &fRunes&7.'
This tooltip lets players know it helps when socketing runes.
enchanted: false
tier: common
A non-glowing, common-tier item.
๐ Fortify Levels & Uses
level:
min: 1
max: 10
uses-by-level:
'1': 1
'5': 2
'10': 3
- Available from level 1 to 10
- Higher levels allow more uses per item
๐ก Protection Logic
protection:
modules:
- runes
chance-by-level:
'1': 15
'2': 20
...
'10': 60
- This only protects items during rune socketing
- The protection chance scales with level (up to 60% at level 10)
๐ฏ Target Requirements
target-requirements:
type:
- WEAPON
- ARMOR
level:
'1': '1:10'
'2': '11:20'
module:
- '*'
This fortify stone applies to:
- Weapons and armor
- Item levels 1โ20
- All modules (using wildcard
'*'
)
๐งช Usage Flow
- Player prepares a weapon and applies the Fortify Stone.
- They try to socket a rune.
- If the socketing fails, the Fortify Stone may save the item based on its level.