There could possibly be a way to add a section in the villagers that could be called "Enchanter" and it could have books with enchants in it. Some possible trading options could be:
For Hardcore Mode:
5 Emeralds -------> Sharpness 2 Book.
5 Emeralds -------> Protection 2 Book.
5 Diamonds -------> Protection 1 Book.
5 Diamonds -------> Sharpness 1 Book.
For Normal Mode:
5 Emeralds -------> Sharpness 4 Book.
5 Emeralds -------> Protection 4 Book.
5 Diamonds -------> Protection 3 Book.
5 Diamonds -------> Sharpness 3 Book.
The way to apply the books on your weapon would be to get an anvil, which could cost 32 Iron/Gold in Normal mode, and 64 Iron/Gold in Hardcore Mode. To apply books onto items in anvils, you need XP. A possible way to receive XP could be a new trade in the villager under Misc. and it could be like 16 Gold for 8 XP Bottles. Or another way to get XP is off of kills.
Thanks for reading!!! - oJones
For Hardcore Mode:
5 Emeralds -------> Sharpness 2 Book.
5 Emeralds -------> Protection 2 Book.
5 Diamonds -------> Protection 1 Book.
5 Diamonds -------> Sharpness 1 Book.
For Normal Mode:
5 Emeralds -------> Sharpness 4 Book.
5 Emeralds -------> Protection 4 Book.
5 Diamonds -------> Protection 3 Book.
5 Diamonds -------> Sharpness 3 Book.
The way to apply the books on your weapon would be to get an anvil, which could cost 32 Iron/Gold in Normal mode, and 64 Iron/Gold in Hardcore Mode. To apply books onto items in anvils, you need XP. A possible way to receive XP could be a new trade in the villager under Misc. and it could be like 16 Gold for 8 XP Bottles. Or another way to get XP is off of kills.
Thanks for reading!!! - oJones