As in the video, we have found a bug that make piglins duplicate items.
How to reproduce (Multiplayer & Singleplayer):
Summon Piglin
Rename it with merge data command
execute as @e[type=minecraft:piglin,name="Piglin"] run data merge entity @s {CustomNameVisible:1,CustomName:"{\"text\":\"Piglin\",\"color\":\"gray\"}"}
Drop items to make piglin hold
Piglin will get dropped item on the ground.
Kill Piglin and get a lot of items that piglin had picked up before
Video:
https://youtu.be/Ve-ntXkUe2kDuplicate
(When get entity data)
Related issues
Comments


No datapack. Just Vanilla

How do you spawn in the piglin, is it a modified spawn egg?

Nope. Just normal spawn egg

Unable to reproduce, also, it is a custom spawn egg, the Piglin is named, so please let us know you spawned in the spawn egg exactly.

Sorry for misunderstanding! It is a command_block renaming them. But, the normal spawn egg and using nametag rename them is fine. So, this problem will only occur with piglin that have custom name that renamed by command block.
Command:
execute as @e[type=minecraft:piglin,name="Piglin"] run data merge entity @s {CustomNameVisible:1,CustomName:"{\"text\":\"Piglin\",\"color\":\"gray\"}"}

Its appear to duplicate x2 every time the command block execute the merge data command when piglin is looking at item they are holding and playing the sound of piglin again and again until piglin finished look item in their hand.
New Video (Data):
Same as MC-112826
Are you using any datapacks or Fabric?