How does enchanting work in Minecraft? Well, you open a magical minecraft spell books and pick a random spell, not quite sure knowing what it will do.
Enchanting is a mechanic that augments armor, tools, weapons, and books with one or more of a variety of «enchantments» that improve an item’s existing abilities or imbue them with additional abilities and uses. Through an enchantment table in exchange for experience points and lapis lazuli. Only unenchanted items may be enchanted this way. Through an anvil, combining an enchanted book with an item, which also costs experience points.
Through an anvil, combining two of the same item with different existing enchantments into a single item that has the enchantments of both. Through a villager, who may trade some enchanted items for emeralds. Through fishing, which gives a chance of obtaining enchanted items. Bottom: With item, hovering over the second line.