I just started having this issue in Bedrock 1.17.40. I have a piglin with nametag. Piglin bartered by me dropping gold ingots on the ground just fine before the farm was setup. Now that piglin is contained in a 1 block glass cell with a dropper or dispenser giving him gold ingots, the piglin will not pick up the ingots. Have tried piglins from spawn eggs or world generated and they all have the same issue. Tried in both creative and survival. Mobgriefing is on.
Steps to reproduce:
1: enclose a piglin with a 2 block high walls all around. Have this piglin standing on the Hopper with a carpet on top. Hopper funnels into double chest
2: Sticky Piston in front of chest and a gold block connected to sticky piston.
3: dropper or dispenser place immediately above piglin, pointing down, and filled with some gold ingots.
4: create a redstone clock behind the chest and connect it to sticky piston and dropper/dispenser.
(Piglin trading layout used was this: https://www.youtube.com/watch?v=mA_E4WNJDZ0&t
Observed Results:
When the system is turned on, gold ingots are dispensed, but the piglin will ignore it. Also, if you manually drop gold armor or ingots in front of piglin caught in this setup, it will also not pick anything up. If you hand gold ingots directly to the piglin, then it will barter.
Expected Results:
When the system is turned on and gold ingots are dropped, it should pick up the gold ingots and barter. Because of the sticky Piston and Gold Block, it should barter extremely quickly as well.
New finding:
If the Piglin is standing on a hopper with carpet over it, they will not pick anything up. I found that if you have the Piglin standing on a solid block and then beneath that, you have a minecart with a hopper funnelling into a hopper that funnels into a chest, then the bartering system works. Seems to be a problem with the hopper and carpet setup somehow.