> For the complete documentation index, see [llms.txt](https://linparlab.gitbook.io/docs/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://linparlab.gitbook.io/docs/integrations/custom-enchantments.md). Agents can also search and read this documentation through its [MCP server](https://linparlab.gitbook.io/docs/~gitbook/mcp).

# Custom Enchantments

The reader determines IDs and levels from Bukkit or the provider. Copy the ID from `/repair debug item`. Recognized IDs with no individual weight use the unknown definition. Identical canonical IDs contribute once, using the highest reported level. A read error on an item can block the repair.

Each example is a separate addition to the existing weights map. Use [Supported Plugins](https://linparlab.gitbook.io/docs/integrations/supported-plugins.md) to check the exact provider version and evidence.

## AdvancedEnchantments enchantment weight

Requires AdvancedEnchantments. Example ID only. Copy the actual ID from the diagnostic. Live provider verification is pending.

```yaml
weights:
  'advancedenchantments:example_guard':
    base: 0.10
    per-level: 0.05
    level-cap: 10
```

## ExcellentEnchants enchantment weight

Requires ExcellentEnchants and nightcore. Verified with ExcellentEnchants 5.4.3 and nightcore 2.15.2.

```yaml
weights:
  'excellentenchants:tunnel':
    base: 0.10
    per-level: 0.05
    level-cap: 10
    levels:
      '5': 0.75
```

## EcoEnchants enchantment weight

Requires EcoEnchants and its required dependencies. Verified with EcoEnchants 2026.47. The registry can report minecraft: keys. Keep the exact namespace.

```yaml
weights:
  'minecraft:lifesteal':
    base: 0.10
    per-level: 0.05
    level-cap: 10
```

## CrazyEnchantments enchantment weight

CrazyEnchantments 2.9.0 stores internal enchantment IDs and levels on the item. AdvancedRepair uses the stored values even if the definition is disabled or has been removed. A valid ID without a configured weight uses `unknown`. Invalid stored data blocks repair before payment. `/repair debug item` shows the ID, level, registry state, and applied weight.

```yaml
weights:
  'crazyenchantments:lifesteal':
    base: 0.10
    per-level: 0.05
    level-cap: 10
```

CrazyEnchantments 2.8.1 and 2.9.0 can price a valid stored enchantment even when its definition is disabled or absent. A malformed stored entry blocks repair. The 2.5 adapter uses the older public reader. See [enchantments.yml](https://linparlab.gitbook.io/docs/configuration/enchantments.md).
