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 then throws an item to the player and takes the gold ingot. During its six-second cooldown before it can barter again, the piglin holds the ingot as if examining it. Hitting a piglin causes it to put the ingot away. Piglins who are killed in one hit before they finish examining the ingot drop it, resulting in cost-free bartering.

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