Bartering

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

Mechanics
To barter with a piglin, either throw a gold ingot near the 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 and baby piglins cannot be bartered with.

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.



Items bartered
The item the piglin throws may be one of the following:


 * 98.7689
 * 98.7689
 * 98.7689