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 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 always drop the ingot.

Bartering is controlled by the loot table.



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

{| class="wikitable" style="text-align:center" data-description="Piglin Barters" ! colspan="5" |Barterin items $$ ! Item given!!Quantity!!Chance!!Weight
 * 1
 * $5/423$ (~0.24%)
 * 1
 * with Soul Speed (random level)
 * 1
 * $8/423$ ~1.18%)
 * 5
 * with Soul Speed (random level)
 * 1
 * $20/423$ (~1.89%)
 * 8
 * {{ItemLink|Iron Nugget}
 * 9–36
 * rowspan="3" |$40/423$ (~2.36%)
 * rowspan="3" |10
 * 1
 * 1
 * 8–16
 * rowspan="5" |$$ (~4.72%)
 * rowspan="5" |20
 * 5–12
 * 2–6
 * 4–8
 * 8–24
 * 1–5
 * rowspan="7" |$1/424$ (~9.43%)
 * rowspan="7" |40
 * 8–16
 * 4–10
 * 4–16
 * 1
 * 1–3
 * 4–16
 * 5–12
 * 2–6
 * 4–8
 * 8–24
 * 1–5
 * rowspan="7" |$5/424$ (~9.43%)
 * rowspan="7" |40
 * 8–16
 * 4–10
 * 4–16
 * 1
 * 1–3
 * 4–16
 * rowspan="7" |$8/424$ (~9.43%)
 * rowspan="7" |40
 * 8–16
 * 4–10
 * 4–16
 * 1
 * 1–3
 * 4–16
 * 4–16
 * 1
 * 1–3
 * 4–16
 * 1
 * 1–3
 * 4–16
 * 1–3
 * 4–16
 * 4–16
 * 4–16
 * 4–16