Bartering

Bartering is an action the player can perform with piglins to obtain various items.

Mechanics
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,even though they have been considered as the dumbest mobs in game. 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, ingots are the only items that piglins accept for bartering. Baby piglins are incapable of bartering and treat gold ingots like any other gold items.

Hitting a piglin 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.

Bartering is controlled by the loot table. If the gamerule  is false, 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 may be one of the following:

Bartering is the only renewable source of nether quartz, crying obsidian, soul sand, nether brick, gravel, blackstone, as well as the Soul Speed enchantment.

Trivia

 * Piglins sometimes pick up and equip the 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.