Apply Item Example - Enchantment Scroll

# Display Item
display-item:
  material: PAPER
  name: '&fEnchantment Scroll &7(Respiration &a+1&7)'
  lore:
    - '&8Scroll'
    - ''
    - '&7Drag any &cenchantable item &7onto this item to'
    - '&7make its &bRespiration &7level &a+1&7.'
    - '&7Up to level &410&7 can be upgraded.'
    - ''
    - '&buccess Rate: &a50%'
    - '&9&lUncommon'
  max-stack: 1
  
# Chance, Up to 100
chance: '50'
  
# Rule Configs
real-changes:
  add-enchants:
    respiration: '{item_enchants.respiration;;0} + 1'

# Match Item
match-item:
  enchantable:
    - respiration

# Conditions
conditions:
  1:
    type: placeholder
    rule: '<'
    placeholder: '{item_enchants.respiration}'
    value: 10
    
# Actions
success-actions:
  1:
    type: message
    message: '&fCool, it looks like magic is showing off, your {name} &fis more powerful now!'
fail-actions:
  1:
    type: message
    message: '&fOh, no! Seems that this time you are now very lucky, the scroll broken, nothing changed!'

Last updated