When you barter with a Piglin, there should be an option to give the Piglin some pork. Every 8 Pork that you give a Piglin will cause that Piglin to give you the result from bartering one gold ingot. If the stack of pork that the Piglin receives from you is not a multiple of 8, the remainder is converted to gold nuggets and thrown back to you.
Example: Suppose that somehow you die with a stack of pork (it does not matter whether the pork is cooked or not; they likely cook it themselves). When you come back to pick up your stuff, you may find that nearby piglins took all your pork, while giving you some 'gifts' in return.
Idea originally from https://github.com/0xmycf/symmetrical-journey/issues/2#issuecomment-968373795
When you barter with a Piglin, there should be an option to give the Piglin some pork. Every 8 Pork that you give a Piglin will cause that Piglin to give you the result from bartering one gold ingot. If the stack of pork that the Piglin receives from you is not a multiple of 8, the remainder is converted to gold nuggets and thrown back to you.
Example: Suppose that somehow you die with a stack of pork (it does not matter whether the pork is cooked or not; they likely cook it themselves). When you come back to pick up your stuff, you may find that nearby piglins took all your pork, while giving you some 'gifts' in return.