âī¸ Configuration Detail
This chapter provides detailed information on the core configuration items of MMOItemsRepair with various real-world examples.
đ Language Settings (config.yml)â
The plugin supports built-in multi-language switching.
lang: en_us # Options: zh_cn, zh_tw, en_us
đ§ Repair Profilesâ
This is the core logic, defining which items can be repaired and how. The system supports Priority Matching, ensuring special equipment matches the correct recipe.
Case 1: MMOItems Exclusive (High Priority)â
Requires both specific materials and experience bottles.
repair:
profiles:
mmoitems_sword_rare:
priority: 200 # High priority, matched first
target:
provider: MMOITEMS
mmoitems-types:
- SWORD
recipes:
ancient_repair:
display-name: "&6Ancient Blade Repair"
repair:
mode: PERCENT
value: 50 # Restores 50% durability
ingredients:
shard:
provider: MMOITEMS
name: "&6Weapon Fragment"
type: MATERIAL
id: WEAPON_FRAGMENT
amount: 2
catalyst:
provider: VANILLA
name: "&bExp Bottle"
material: EXPERIENCE_BOTTLE
amount: 4
Case 2: Vanilla Gear Batch Repair (Low Priority)â
Use groups to quickly set rules for all vanilla equipment types.
vanilla_diamond_gear:
priority: 50
target:
provider: VANILLA
groups:
- DIAMOND_GEAR # Matches all diamond swords, pickaxes, armor, etc.
recipes:
diamond_repair:
display-name: "&bDiamond Gear Repair"
repair:
mode: PERCENT
value: 30
ingredients:
diamond:
provider: VANILLA
material: DIAMOND
amount: 2
đ Field Referenceâ
| Field | Description | Example |
|---|---|---|
priority | Match order priority | 100 |
target.provider | Item source type | MMOITEMS, VANILLA |
repair.mode | Calculation mode | PERCENT, FLAT |
ingredients.provider | Material source type | VANILLA, MMOITEMS, ITEMSADDER |
đĨī¸ Menu Customization (menu.yml)â
# In menu.yml
title: "&8Repair Bench"
slots:
target-slot: 13 # Target item position
material-slots: # List of slots for materials
- 29
- 30
- 31
- 32
- 33
confirm-slot: 40 # Confirm button position