AdvancedEnchantments
Get AdvancedEnchantmentsJoin DiscordUnlimited Minecraft Hosting
  • AdvancedEnchantments
  • âžĄī¸AdvancedEnchantments UI
  • đŸĒ„Enchantments
    • 📑List of Enchantments
      • Default Enchants (250+)
      • Cosmic Enchants (200+)
      • Vanilla+ Custom Enchants (60+)
    • Creating Enchantments
      • Triggers
      • Effects
      • Area of Effect
      • Settings
      • Effect Info
      • Complex Enchantments
    • Enchantment Conditions
    • âąī¸Repeating Enchantments
  • â„šī¸General Information
    • Commands & Permissions
      • AEGive
    • Languages and Localization
    • 🔩Plugin Items
      • All plugin items
      • Item Configuration
      • Slot Increasers
    • Toggling Features
  • âš™ī¸Configuration
    • Random Loot, Villager Trades and Mob Drops
    • Default Files
    • Enchanter
    • Souls
    • Unsuccessful enchants
    • Per-Level Descriptions
    • Per-Level Books
    • Enchantments In Essentials Kits
    • GKits
      • GKit Permissions
      • Colored Leather Armor
    • Armor Sets
    • Drag&Drop books onto Player Heads
    • Groups
  • đŸ’ģFor developers
    • Plugin API
    • Create Custom Effects
    • Plugin Compatiblity issues
  • Plugin Information
    • PlaceholderAPI placeholders
    • FAQ & Other Plugin Support
Powered by GitBook
On this page

Was this helpful?

  1. Configuration

Per-Level Books

Learn how to change book item on each enchantment and each level

PreviousPer-Level DescriptionsNextEnchantments In Essentials Kits

Last updated 1 month ago

Was this helpful?

Starting 9.17.0, it is possible to change items on each level of a specific enchantment. Similar to how . It's very simple to do:

Here is an example with hasten enchantment, where you can for example just change the custom-model-data or you can even change the whole item:

enchantments.yml
hasten:
  display: '%group-color%Hasten'
  applies-to: Tools
  type: MINING
  group: SIMPLE
  applies:
    - ALL_PICKAXE
    - ALL_SPADE
    - ALL_AXE
  levels:
    '1':
    # WE CAN SEE HERE THAT ONLY CUSTOM MODEL DATA IS CHANGED
      item:
        custom-model-data: 99
      chance: 15
      cooldown: 3
      effects:
        - POTION:FAST_DIGGING:0:40
    '2':
    # HERE, MORE PARAMETERS OF THE ITEM ARE BEING CHANGED
      item:
        type: ENCHANTED_BOOK
        name: '&6Harvest II'
        lore: |-
          &7Harvest in a 3x3 area.
          &7Chance to harvest in a 3x3 area.
      chance: 25
      cooldown: 3
      effects:
        - POTION:FAST_DIGGING:1:60

Any value that is not present here will be taken from the config.yml in the enchantment-book section

config.yml
enchantment-book:
  # If true, books can be applied to items in anvils.
  anvil-application: false
  # If true, books can be applied to items by dragging and dropping them on the item in an inventory.
  drag-drop-application: true
  item:
    type: ENCHANTED_BOOK
    id: 0
    custom-model-data: 0
    force-glow: false
    # Variables: %enchant%, %enchant-no-color%, %description%, %level-description%, %applies%, %success%, %destroy%, %color%, %max-level%
  name: "%group-color%&l&n%enchant-no-color% %level%"
  lore:
    - "&a%success%% Success Rate"
    - "&c%destroy%% Destroy Rate"
    - "&e%description%"
    - "&7%applies-to% Enchantment"
    - "&7Drag n' drop onto item to enchant"

âš™ī¸
groups can change this