fortify stone_gem - magemonkeystudio/divinity GitHub Wiki
π Fortify Stone: Gems
This Fortify Stone improves the chance that an item survives failure when socketing Gems. It's ideal for protecting valuable weapons or armor during enhancement.
π File Location
Place this file at:
plugins/Divinity/modules/fortify/items/stone_gem.yml
π§Ύ Purpose
When players use this stone on an item and socket a gem, it provides a level-based chance to protect the item if the socketing fails.
π§ Configuration Breakdown
material: COAL
The base Minecraft item used for this fortify stone.
name: 'Fortify Stone'
lore:
- '&7Fortifies the item when socketing &fGems&7.'
Describes its purpose clearly to players in the item tooltip.
enchanted: false
tier: common
No enchantment glow; categorized as a common tier item.
π Fortify Levels & Uses
level:
min: 1
max: 10
uses-by-level:
'1': 1
'5': 2
'10': 3
- Can exist in levels 1 to 10
- Higher-level stones offer more uses before they expire
π‘ Protection Against Failure
protection:
modules:
- gems
chance-by-level:
'1': 15
'2': 20
...
'10': 60
- This stone activates only when socketing gems
- At level 10, it gives a 60% chance to prevent item loss
π― Target Requirements
target-requirements:
type:
- WEAPON
- ARMOR
level:
'1': '1:10'
'2': '11:20'
module:
- '*'
This means the stone only applies to:
- Weapons and armor
- Within item level 1β20 (based on fortify level)
- Any module (using the wildcard
'*'
)
π§ͺ Usage Scenario
- Player uses the Fortify Stone on a sword (level 8).
- Then tries to socket a gem.
- If the socketing fails, the stone provides a chance to prevent the sword from breaking.
- The stoneβs use count is reduced.