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'

Last updated