Minecraft wiki entry for Enchanted_Golden_Apple, associated text: Piglins are attracted to enchanted golden apples and run toward any enchanted golden apples on the ground, and inspect it for 6 to 8 seconds before putting it in their inventory. However, piglins do not eat enchanted golden apples (or any food).