Compatibility
Minecraft: Java Edition
Platforms
Supported environments
75% of ad revenue goes to creators
Support creators and Modrinth ad-free with Modrinth+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 extract one enchantment from an enchanted item 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 remove_enchantments
. The function will extract the first - in alphabetical order - enchantment and move it to an enchanted book on the 2nd slot. On the 3rd slot, you will find your original item without the extracted enchantment.
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.