Mcmmo Compatibility

The default vanilla_enchants.yml entry drives mining speed through our own "itemattribute" MythicMobs skill mechanic, fired only on ~onEnchantApply / ~onEnchantRemove. mcMMO's Super Breaker / Giga Drill Breaker abilities force-write the vanilla Efficiency enchant level directly onto the held tool via the Bukkit API, without going through MythicEnchants at all — so our skill-line-driven attribute never gets re-triggered, and the tooltip's "Efficiency N" number can drift out of sync with the actual mining_efficiency attribute for the duration of the ability.

This variant replaces the skill-line attribute with a native EnchantData attribute effect component instead. EnchantData compiles directly into the enchantment's own datapack JSON (the "minecraft:attributes" effect component) — the same mechanism vanilla enchantments like Efficiency and Sharpness use natively on non mench servvers. Because it's evaluated by the game engine itself against whatever level is actually on the item, it always matches mcMMO's temporarily-boosted level automatically, with no trigger, listener, or PDC tracking involved — exactly as if it were a real vanilla enchant.

How to use: Copy the "minecraft:efficiency" block below into your plugins/MythicMobs/packs/Vanilla_Enchants/enchantments/vanilla_enchants.yml, replacing the existing minecraft:efficiency entry, then /mench reload (datapack regeneration + a server restart is required for EnchantData changes to take effect, since they're compiled into the datapack).

minecraft:efficiency:
  Override: true
  Display: '&7Efficiency'
  Description: 'Increases mining speed.'
  Rarity: COMMON
  MinLevel: 1
  MaxLevel: 5
  ValidSlots: [MAINHAND]
  SupportedItems: '#minecraft:enchantable/mining'
  AnvilCost: 1
  Options:
    Enabled: true
    Cursed: false
    Treasure: false
    RandomLoot: true
    Tradeable: true
    TradedEquipment: true
    MobSpawnEquipment: true
    TooltipOrder: 31
  Enchanting:
    Weight: 10
    MinCost:
      Base: 1
      PerLevel: 10
    MaxCost: 61
    BookOffer: true
  EnchantData:
    attributes:
      - attribute: mining_efficiency
        operation: add
        id: mythicenchants/efficiency
        value:
          type: levels_squared
          added: 1.0
Updated Sep 19, 2026