Bartering

Bartering is an action the player can perform with piglins.

Mechanics
Bartering is controlled by a Loot table at. 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, after which the piglin tosses a random item to the player, based on the table below. Hitting a piglin causes it to put the ingot into its inventory and it cannot be bartered with again. Piglins who are killed in one hit before they finish examining do not drop the ingot, resulting in its loss.

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