The bug:
If you summon a piglin with the /summon command, it will not be attracted to gold items and will not pick up those gold items.
How to produce:
Using the "/summon piglin" command in The Nether.
Throw a gold ingot (or any gold item) at this piglin.
Wait.
You will notice that the piglin did not pick up the gold ingot, nor did it react to this ingot in any way (such as being attracted to it), even though the game rule mobGriefing has been set to true.
Linked issues
is duplicated by 1
Attachments
Comments 2
I am able to reproduce the reported behavior and the information provided by @unknown. It was introduced in 1.21.4 Pre-Release 1, presumably alongside the fix of MC-278193. This issue also affects piglins summoned from monster spawners.
It appears that their CanPickUpLoot boolean default to false, despite all naturally spawned ones setting it to true.