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 Descriptions

Learn how to add per-level description for enchantments

Starting 9.5.0, it is possible to add per-level descriptions for enchantments. It's very simple to do:

Here is an example with hasten enchantment, where you can describle per-level descriptions better:

enchantments.yml
hasten:
  display: '%group-color%Hasten'
  applies-to: Tools
  type: MINING
  group: SIMPLE
  applies:
    - ALL_PICKAXE
    - ALL_SPADE
    - ALL_AXE
  levels:
    '1':
      chance: 15
      cooldown: 3
      description: Chance to gain Haste 1 after breaking blocks.
      effects:
        - POTION:FAST_DIGGING:0:40
    '2':
      chance: 25
      cooldown: 3
      description: Chance to gain Haste 2 after breaking blocks.
      effects:
        - POTION:FAST_DIGGING:1:60

It's as simple as adding a description value under each level, just like chance or cooldown would be added for enchantments!

In config.yml, you must also change for items and books to utilize %level-description% instead of %description%. This will be located at the bottom of config.yml file, under settings (full path: settings.lore-descriptions.enabled)

config.yml
# Should enchantment descriptions be added under enchant names in lores?
#   for per level descriptions use %level-description%. (will default to %description% if level description is not setup)
#   if level description is set, but here it's still still to %description%, the placeholder won't parse!
lore-descriptions:
  enabled: false
  display: "%group-color%* &8%description%"

and under enchantment-book (full path: enchantment-book.lore)

config.yml
enchantment-book:
  lore:
  - '&a%success%% Success Rate'
  - '&c%destroy%% Destroy Rate'
  - '&e%description%'
  - '&7%applies-to% Enchantment'
  - '&7Drag n'' drop onto item to enchant'

PreviousUnsuccessful enchantsNextPer-Level Books

Last updated 1 month ago

Was this helpful?

âš™ī¸