Compatibility
Minecraft: Java Edition
Platforms
Creators
Details
About datapack
Universal Enchantment Splitter (UES) allows you to Extract enchantments from enchanted books and items. Extracted enchantment will be moved to a new enchanted book enabling you to use it on a different tool.
Splitting the enchanted book
To extract one enchantment from an enchanted book place it in a 1st slot of a single chest. Remember to leave 2nd and 3rd slots empty. Next, stand on the chest and run a command /trigger split_enchantments
. The function will extract the first - in alphabetical order - enchantment and move it to a new book on the 2nd slot. On the 3rd slot, you will find your original book without the extracted enchantment.
Removing enchantment from an item
To remove all enchantments from any item, place it in the 1st slot of a single chest and leave 2nd and 3rd slots empty. Next, stand on the chest and run /trigger remove_enchantments command. This function will remove all the enchantments from your item, as well as reset the repair cost in the anvil.
On the 2nd slot you will find your item without any enchantments and on the 3rd slot you will find an enchanted book with all enchantments from the item.
Friendly with enchantment levels higher than vanilla
Do you have a mod or datapack that introduces tools and books with enchantments higher than vanilla ones? No worries, this datapack supports all levels up to 255 even for enchantments that normally don't have any levels, like multishot.
Future datapack support
I plan on updating this datapack once new full releases of Minecraft comes out.
Compatibility with Fabric mods
If you want some extra compatibility for enchantments from Fabric mods, let me know on Discord, and I will release additional add-ons that are compatible with your desired mods!
Special thanks
Shoutout to Brandon Z Moore who created a datapack, that my datapack was based on in the early development. Thanks for inspiring me to optimize your project and make it compatible with all enchantment levels.