Mending is an enchantment in Minecraft that can be applied to tools, weapons, and armor to repair them when they are used. This can be very useful, as it can extend the life of your items and save you from having to craft new ones as often.
Mending can be obtained by enchanting items at an enchanting table or by finding enchanted items in chests or other loot containers. To enchant an item at an enchanting table, you will need to have the appropriate level of experience and lapis lazuli. The level of experience required will depend on the level of the enchantment you are trying to apply.