Trading
Trading is a gameplay mechanic that allows players to exchange emeralds for items, and vice versa, with villagers and wandering traders. Trading can allow the acquisition of items that would otherwise be difficult or impossible to obtain, such as enchanted books with "treasure" enchantments (e.g., Mending), bottles o' enchanting, and chainmail armor.
Pressing use on an adult villager with a profession, or on a wandering trader, opens a menu, allowing a player to trade with that merchant. This action pauses any pathfinding the merchant was doing and makes it face you. If the merchant takes damage while trading, the trading menu closes. The same thing happens if they walk or are transported far enough away.
All transactions involve emeralds. Trading is the only method of acquiring the globe banner pattern, arrows of Decay,‌[BE only] as well as all types of explorer maps except buried treasure maps in Survival mode. It is also the only renewable way to obtain bells, diamond gear,[note 1] lapis lazuli,‌[BE only] bottles o' enchanting, glass, sand, red sand, coral blocks, and small dripleaves.
Complete article available
This cached Wiki page is unusually large, so it is loaded on demand to keep the initial page fast.