Minecraft wiki entry for Nether_Gold_Ore, associated text: Piglins become hostile toward players that mine the ore, regardless if the player is wearing gold armor or is under the Invisibility effect. The same case applies if the player mines gold of any type, not just the ore. If any Nether gold ore is dropped and in its item form, piglins will run towards any Nether gold ore and examine it for 6 to 8 seconds after picking it up.