Bartering

Bartering is an action the player can perform with piglins.

Obtainable Items
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.



The item the piglin throws may be one of the following:
 * 1-64
 * 1-64

If multiple gold ingots are on the ground, piglins pick them up one at a time and toss a new item once every six seconds. Once there are no ingots remaining to pick up, they return to their normal behavior.

Piglins will pick up many other items that are made of gold, however, ingots are the only items that piglins will barter with. Any other gold items, such as gold nuggets or blocks of gold will simply be added to the piglin's inventory. Weapons and armor will be equipped if possible. Baby piglins are incapable of bartering and will treat gold ingots like any other gold items.

Hitting a piglin causes it to put the ingot into its inventory and 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 drop the ingot with the same chances as any other held item (8.5%, increased with looting).

Bartering is controlled by the loot table.