Minecraft wiki entry for Bartering, associated text: Bartering is controlled by the loot table minecraft:gameplay/piglin_bartering. If the gamerule mobGriefing is false, piglins only barter when the player uses a gold ingot on them.