This is first early version of EnchantmentSlots v5, use as your own risk!
Important Anountcements:
The configuration files for EnchantmentSlots v4 work correctly on v5, provided you don't use any of the new features added in v5. If you need to use the new features introduced in v5, you'll need to reconfigure the plugin. (Back up your configurations, then delete them, restart the server, and let the plugin regenerate the new configurations.)
EnchantmentSlots will be renamed to EnchantmentExpansion in a future version. While the configuration file will remain unchanged, you will need to change the plugin configuration directory name from EnchantmentSlots to EnchantmentExpansion. In future versions, we will also release other related features to expand the plugin beyond just EnchantmentSlots functionality.
Enchantment Slots:
- The Slot type will be split into Base and Extra.
- Base represents the item's inherent enchantment slots, while
- The item's actual number of slots equals: Base Slot Value + Extra Slot Value.
- Extra represents additional slots created using Extra Slot Items.
Extra Slot Items:
- Slots expanded using Extra Slot Items prior to version v4 are considered Base Slots in version v5.
- The plugin now records the history of Extra Slot Item usage in the item's NBT.
- Some API methods have changed, and developers may need to re-adapt this plugin.
Deenchant Items:
- A new Match Item Rule, "Has Slot," has been added and is now the default setting. This rule ensures that only items with more than a specified number of slots can use this Extra Slot Item.
- Added use limits feature, allows you to set the maximum number of times the same item can be used.
- Added support for use random number in add-slots option, format like 5~10.
Remove Slot Items:
- The configuration for deenchant items is now located in a separate folder called deenchant_items, instead of in config.yml.
- The deenchant items configuration in version 4 is no longer available in version 5. Please reconfigure it.
- Added remove-type option in deenchant items config, supports: RANDOM, ORDER and GUI.
- RANDOM: Randomly selects eligible enchantments.
- GUI: Opens a selection GUI and lets the player choose which eligible enchantments to remove.
- ORDER: Selects enchantments in the sequence specified by remove-enchants.order. Eligible enchantments not listed in order are processed afterward, sorted by enchantment ID.
- Added support for set whitelist and blacklist enchantments for deenchant items.
- Added use limits feature, allows you to set the maximum number of times the same item can be used.
Other small changes and fixes.
- Remove Slot Item removes Extra Slots from an item, which are the slots that players have expanded using Extra Slot Items.
- Support 3 types of remove slot items:
- FIXED: Removes the number of slots configured in remove-slots option.
- EXCESS: Removes every currently unused extra slot, leaving the slot limit equal to the number of used slots.
- LINKED_EXTRA: Reverses the most recent tracked use of one specific extra slot item and returns one copy of that extra slot item to the player. This is mostly used by you.
- Support return the extra slot item used by the item.
- Support return the enchantment books if the enchantments will excess after use this remove slot item.
- Support use limits feature, allows you to set the maximum number of times the same item can be used.
- Added settings.set-slot-trigger.PlayerInventorySlotChangeEvent.ignore-equipment-when-open-other-invenotry option in config.yml file.
- Default to true.
- There is issue when equipment slot change while opening other inventory.
- You should always enable this unless this issue fixed in later Paper version.
- Added new set slot trigger: PlayerInventorySlotChangeEvent
- Require Paper
- It's better than use this instead of use SetSlotPacket.
- Default to false.
- Other small changes and fixes.
- Reworked skull item builder codes, should have better performance now.
- Reworked gui listener codes, should have better performance.
- Other small changes and fixes.
