Bartering

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

Mechanics
To barter with a piglin, a player either throws a gold ingot near the piglin or the gold ingot on it. The piglin takes the gold ingot and appears to examine it for six seconds $$ or eight seconds $$, after which the piglin tosses a random item to the player. , piglin brutes 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. This stored ingot is dropped upon death. 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 will only barter when the player uses a gold ingot on them.



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