Skip to main content

âš™ī¸ 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​

FieldDescriptionExample
priorityMatch order priority100
target.providerItem source typeMMOITEMS, VANILLA
repair.modeCalculation modePERCENT, FLAT
ingredients.providerMaterial source typeVANILLA, 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