Mineuniverse
Bartering

Bartering

Bartering is a gameplay mechanic that allows players to exchange gold ingots for various items with piglins.

6 min read Updated 3 views
Gameplay Piglin mechanics
Advertisement Remove ads with Premium →
Contents (8)
  1. Mechanics
  2. Items bartered
  3. History
  4. Java Edition
  5. Bedrock Edition
  6. Issues
  7. Gallery
  8. References
For the mechanic used with villagers, see Trading.
"Barter" redirects here. For the enchantment in Minecraft Dungeons, see MCD:Death Barter.
A reference table of piglin bartering.

Bartering is a gameplay mechanic that allows players to exchange gold ingots for various items with piglins.

Mechanics

Adult piglins can trade gold ingots for certain items when they pick up nearby gold ingot items or when the player uses gold ingots while looking at them. After the piglin takes the gold ingot and examines it for 6 seconds (120 gameticks) in Java Edition it tosses a random item to the player, or upward if no player is in sight. The full cycle time, from when a piglin accepts an ingot until it accepts the next ingot, is 6.05 seconds (121 gameticks) in Java Edition and 8 seconds (160 gameticks) in Bedrock Edition.[1] Baby piglins take the ingot, but do not barter; they instead store the ingot in their inventory. Piglin brutes ignore gold ingots and do not barter.

Piglins can pick up other items that are in the piglin_food or piglin_loved tags; however, gold ingots are the only items that piglins accept for bartering.

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. Piglins who are killed in one hit before they finish examining always drop the ingot.

When a piglin is examining a gold ingot, it can still be angered when the player breaks a container or a gold-related block nearby, although its behavior differs depending on the game edition. In Java Edition, the piglin finishes the barter on the original schedule and starts attacking the player only after the barter finishes. In Bedrock Edition, the piglin immediately finishes the barter and starts attacking the player,[2] leading to a bartering transaction much shorter than the default 8 seconds.[3] This allows piglins in Bedrock Edition to barter rapidly when gold-related blocks are repeatedly broken nearby or repeatedly pushed and pulled by pistons.

A piglin looking at a gold ingot.

Bartering is controlled by the loot table minecraft:gameplay/piglin_bartering. If the game rule mob_griefing‌[JE only] or mobgriefing‌[BE only] is false, piglins barter only when the player uses a gold ingot on them.

In Java Edition, if a piglin is zombified into a zombified piglin before the bartering is complete, the newly zombified piglin drops the gold ingot immediately. In Bedrock Edition, the zombified piglin continues to hold the gold ingot after zombification and drops it upon death.

When a piglin is admiring a gold ingot while bartering, it does not run away from nearby zoglins or zombified piglins.

Piglins sometimes pick up and equip the iron boots enchanted with Soul Speed at a random level that they have just offered while bartering. A player wanting to obtain the iron boots without killing the piglin can induce the piglin to discard the iron boots by offering a pair of golden boots.[4]

Items bartered

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

Bartering items
Item given Chance Quantity Ingots needed
per item (average)
Enchanted Book
with Soul Speed (random level)
5⁄469
(~1.07%)
1 93.8
Iron Boots
with Soul Speed (random level)
8⁄469
(~1.71%)
1 58.625
Splash Potion of Fire Resistance
Potion of Fire Resistance
Water Bottle 10⁄469
(~2.13%)
1 46.9
Dried Ghast
Iron Nugget 10–36 2.039
Ender Pearl 2–4 15.63
String 20⁄469
(~4.26%)
3–9 3.908
Nether Quartz 5–12 2.759
Obsidian 40⁄469
(~8.53%)
1 11.725
Fire Charge
Crying Obsidian 1–3 5.867
Leather 2–4 3.908
Soul Sand 2–8 2.345
Nether Brick
Spectral Arrow‌[JE only]
Arrow‌[BE only]
6–12 1.303
Gravel 8–16 0.977
Blackstone

Bartering is the only renewable source of nether quartz, crying obsidian, soul sand, dried ghasts (both directly as a barterable item and indirectly as a product of soul sand), Nether brick,‌[Java Edition only] gravel, blackstone, and the Soul Speed enchantment.

History

Java Edition

Java Edition
1.1620w07a Added bartering.
20w09a Soul sand, mushrooms, crimson fungi, flint, rotten flesh, and raw porkchops have been removed from the possible barters.
Crying obsidian, string, Fire Resistance potions and splash potions, and netherite hoes have been added to the possible barters.
Barter chances have been tweaked.
Due to a bug, all barters give stacks of 1–5 items.[5]
20w10a Barters now give the correct amounts of items.
Warped nylium, warped fungus, and shroomlights have been removed from the possible barters.
Iron nuggets have been added to the list of barters and soul sand has been re-added.
Barter chances have been tweaked.
20w11a Enchanted books and iron boots with Soul Speed have been added to the possible barters.
20w13a Items enchanted with Soul Speed are now slightly more common.
20w20a Netherite hoes can no longer be obtained through bartering.
1.16.220w28a Water bottles, spectral arrows, and blackstone have been added to the possible barters.
Magma cream and glowstone dust have been removed from the possible barters.
Barter chances have been tweaked.
Many barters give fewer items.
1.21.625w18a Dried ghasts have been added to the possible barters.

Bedrock Edition

Bedrock Edition
1.16.0beta 1.16.0.51 Added bartering.
beta 1.16.0.57 Updated the loot table to match Java Edition 20w13a. Previously, right-clicking the piglin would give the player obsidian or flint and steel, while dropping gold onto the ground would result in a Nether wart block
Piglins now "inspect" the gold ingot before giving the player an item, as opposed to giving the item instantly.
1.16.100beta 1.16.100.54 Updated the loot table to match Java Edition 1.16.2. Arrows are used in place of spectral arrows.
1.21.90Preview 1.21.90.21 Dried ghasts have been added to the possible barters.

Issues

Issues relating to "Bartering" are maintained on the bug tracker. Issues should be reported and viewed there.

References

  1. ↑ MCPE-99448 – Piglins need 8 seconds to barter, while they only need 6 in java
  2. ↑ MCPE-94099 – Piglins get angry when a player destroys a chest or a gold-related item while admiring a gold item
  3. ↑ MCPE-91275 – Piglin can skip bartering animation when being distracted by other activities
  4. ↑ MCPE-69575 – Piglins equip Soul Speed boots instead of giving them to the player – resolved as "Works As Intended".
  5. ↑ MC-173165 – Piglin Bartering Loot Table contains an extra "set_count" function – resolved as "Fixed".
Advertisement Remove ads with Premium →

More in Gameplay

View all 133 →
Anvil mechanics/Repairable itemsAnything not listed below does not have a unit repair item, and can be repaired only by consuming another instance of itself.ArchaeologyArchaeologyArchaeology is a gameplay mechanic that allows the player to find items representing historical artifacts inside suspicious sand and suspicious gravel.Armor materialsArmor materials refer to the material that an armor item uses.AttributeAttributes control certain numeric properties of players, mobs, and armor stands. Every entity has a base value for each of its attributes, and modifiers…Black entitiesWhen an entity's origin point goes inside an opaque block and can be seen easily, they become black entities. This applies to mobs and some block…Block conversionBlock conversion is a mechanic where certain blocks can convert into other blocks.Block offsetBlock offsetCertain non-solid blocks, such as short grass, pointed dripstone, and some flowers do not have their textures or interaction boxes centered on blocks they…BlockingBlockingBlocking is a gameplay mechanic that allows players to block several forms of damage using a shield.
Advertisement Remove ads with Premium →

Related mods

Bartering Station Bartering Station Mod · 41.5M downloads Just Enough Piglin Bartering Just Enough Piglin Bartering Mod · 6.7M downloads [HTP] Bartering Station | Spanish Translation Pack [HTP] Bartering Station | Spanish Translation Pack Resource Pack · 2.3M downloads Dried Ghast from Piglin Bartering Dried Ghast from Piglin Bartering Mod · 262.4K downloads
Explore the Minecraft Wiki
Blocks, items, mobs, biomes and game mechanics — all in one place.
Wiki home