Bartering

Bartering is an action the player can perform with piglins to obtain various items.
==Mechanics==
<onlyinclude>To barter with a piglin, either throw by dropping a gold ingot near an adult piglin or a gold ingot on it. After the piglin takes the gold ingot and examines it for six seconds or eight seconds , it tosses a random item to the player. Piglin brutes ignore gold ingots and do not barter. Baby piglins take the ingot without giving anything in return, instead holding the ingot, which is dropped when killed.
Piglins pick up many other items that are made of gold; however, gold ingots are the only items that piglins accept for bartering. Baby piglins are incapable of bartering and treat gold ingots like any other gold item.
Hitting a piglin while it is examining a gold ingot causes it to "confiscate" the ingot; the piglin does not complete the barter. It cannot be bartered with again unless it puts another item in its inventory. Piglins who are killed in one hit before they finish examining always drop the ingot.
When a piglin is admiring a gold ingot, it can still be angered by the player breaking a container or a gold-related block nearby, although its behavior differs depending on the game edition. , the piglin finishes the barter on the original schedule, and only starts attacking the player once the barter finishes. , the piglin immediately finishes the barter and starts attacking the player, leading to a bartering transaction much shorter than the default 8 seconds. This allows piglins to barter rapidly when gold-related blocks are repeatedly broken nearby, or when a gold-related block is repeatedly pushed and pulled by pistons.
Bartering is controlled by the loot table . If the game rule mobGriefing is , piglins only barter when the player uses a gold ingot on them.
If a piglin is zombified into a zombified piglin before the bartering is complete, the newly zombified piglin drops the gold ingot. 
The player can only barter with piglins, not piglin brutes or zombified piglins, even if the zombified piglin was a piglin that was zombified in the Overworld or the End.
When a piglin is admiring a gold ingot while bartering, it does not run away from nearby zoglins or nearby zombified piglins.
==Items bartered ==
The item the piglin throws can be one of the following: 
Bartering items
Item given 	Quantity	Chance 	Ingots neededper item (average)
with Soul Speed (random level)	1 	(~1.09%)	91.8
with Soul Speed (random level)	1 	(~1.74%)	57.375
 	1 	(~1.74%)	57.375
 	1 	(~1.74%)	57.375
 	1 	(~2.18%)	45.9
 	10–36 	(~2.18%)	1.996
 	2–4 	(~2.18%)	15.3
 	3–9 	(~4.36%)	3.825
 	5–12 	(~4.36%)	2.7
 	1 	(~8.71%)	11.475
 	1–3 	(~8.71%)	5.7375
 	1 	(~8.71%)	11.475
 	2–4 	(~8.71%)	3.825
 	2–8 	(~8.71%)	2.295
 	2–8 	(~8.71%)	2.295
 	6–12 	(~8.71%)	1.275
 	8–16 	(~8.71%)	0.96
 	8–16 	(~8.71%)	0.96
Bartering is the only renewable source of nether quartz, crying obsidian, soul sand, nether brick, gravel, blackstone, as well as the Soul Speed enchantment.
==History ==
== Issues==
==Trivia==
*Piglins sometimes pick up and equip iron boots enchanted with Soul Speed that they have just offered while bartering. A player wanting to obtain the iron boots without killing the piglin can induce the piglin to discard the iron boots by offering a pair of golden boots.
==See also==
*
*
==References==
fr:Piglin#Troc
it:Baratto
ja:物々交換
ko:물물교환
pt:Troca
ru:Товарообмен
uk:Бартер
zh:以物易物