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

  1. Player uses the Fortify Stone on a sword (level 8).
  2. Then tries to socket a gem.
  3. If the socketing fails, the stone provides a chance to prevent the sword from breaking.
  4. The stone’s use count is reduced.

πŸ“š Related

⚠️ **GitHub.com Fallback** ⚠️