⚡Auto Add Lore
EnchantmentSlot supports adding information about enchanting slots to the lore of all matched items, which we call auto add lore.
Enable
If you want to enable auto add lore fature, please enable it at item-can-be-enchanted.auto-add-lore
option at config.yml
file.
settings:
item-can-be-enchanted:
# Auto add enchantment slot lore for all item that can be enchanted.
# If disabled, only item has enchantment slot NBT will display lore.
# Maybe lead to server lag after enable.
auto-add-lore: false
If enable, as long as the item can be enchanted, we will automatically add enchantment slot lore for it. If disable, only items been set slot will have enchantment slot lore added to them.
Match Item
You can use match item here to determine which items will add enchantment slot lore.
By default, all items that can be enchanted (set in this page) will auto add lore. There is a extra option called black-book
can help you hide lore for books. If you need more complex use, please use MythicChanger's match item rules. For more info, please view here.
# Only item that can be enchanted will be added lore.
# If item don't have enchantment slot NBT, plugin will auto calculate it default slot as max slot.
add-lore:
# Require MythicChanger.
# Which item will display lore.
match-item:
not:
material:
- book
- enchanted_book
has-lore: false
Download MythicChanger
FREE: Click to download
PREMIUM: Click to download
For how to configure the match-item section, please read MythicChanger's wiki, click here to visit. Please note that some of the match rules require PREMIUM version of MythicChanger.
Content of Auto Add Lore
You can set content of Auto Add Lore at config.yml file. Available placeholders:
{enchants}
{empty_slots}
{enchant_amount}
{slot_amount}
You can further set options for the {enchants}
, {empty_slots}
placeholder in auto-lore.placeholder
.
Sub Placeholders for {enchants} Placeholder
Available sub placeholders for {enchants}
:
{enchant_name}
{enchant_level}
{enchant_level_roman}
{raw_enchant_name} - Without ratity color exist in supported custom enchantment plugins.
Enchantment Sort for {enchants} Placeholder
EnchantmentSlots supports auto enchantment sort in {enchants}
placeholder: we will hook into EcoEnchants v10+ or ExcellentEnchants v4 and use it's API to get enchantment display sort in those plugins, for vanilla enchantments, it's depend on how long it was obtained.
Enchantment Name for {enchant_name} Sub Placeholder
By default, other plugins can not get enchantments name that displayed in client. You have to set them in config.yml
to make EnchantmentSlots correctly display enchantment name for custom enchantments.
But, EnchantmentSlots will hook into EcoEnchants v10+ or ExcellentEnchants v4 (v3 is supported in version before 3.2.0) and use it's API to get enchantment name, so if you are using the 2 plugins, you don't need manually set enchantment name at config.yml
.
auto-lore:
# Does not support other packed-based item, enchants plugins.
# Like EcoEnchants, EcoItems. (You can also try eco as use-listener-plugin, then change packet-listener-priority)
# They will always put their lore at first location and EnchantmentSlots can do nothing about it.
at-first-or-last: false
# Do not change this option when server started!
# Only change this if your server has stopped!
display-value:
- "&#ff3300Enchantment Slots: {enchant_amount}/{slot_amount}"
- "{enchants}"
- "{empty_slots}"
placeholder:
enchants:
# Other placeholder: {enchant_level_roman}, {raw_enchant_name}
format: '&6 {enchant_name} {enchant_level}'
sort: true
level-hide-one: true
empty-slots:
format: '&7 --- Empty Slot ---'