Minecraft, Vanilla Survival: Cracking the Enchantment Seed
Description YT
Things I missed in the video (IMPORTANT to read all of this if you're planning on doing it yourself):
You can't relog, change dimension or die during the process. The bin is pretty much required, especially if you're enchanting a large number of items, since you're not allowed to throw out extra items.
You cannot have any potion effects active. This includes beacons!
You can actually collect XP during the process, you just having to be very careful how you do it. You can't have mending equipped, and your weapon can't have unbreaking or sharpness. I therefore find a zombie pigman XP farm most appropriate.
You can't use the give command during this process. Use /replaceitem instead.
Does not work if the server is running PaperMC.
NOTE: The tool's Look and Feel has changed a LOT since the video was released, expect things to be different. Be sure to read the README for up-to-date information
Enchantment cracking tool download: https://github.com/Earthcomputer/EnchantmentCracker/releases
Source code: the source code is now available at https://github.com/Earthcomputer/EnchantmentCracker
Another implementation written as part of my mod may be found here: https://github.com/Earthcomputer/clientcommands/blob/master/src/main/java/net/earthcomputer/clientcommands/EnchantmentCracker.java