Using "setblock replace" on a chest, trapped chest, shulker box, ender chest, gold block, or other blocks that anger piglins will do so no matter if the player is in creative mode or survival mode, as well as breaking those blocks in creative mode straight up.
Steps to Reproduce (with /setblock)
Enter survival mode in a world with cheats enabled
Run the command "/setblock ~ ~2 ~ chest 0"
Run the command "/setblock ~ ~2 ~ trapped_chest 0 replace"
Here, the piglins will target the player, even if the player goes into creative mode before hand.
Steps to Reproduce (with Creative mode)
Enter creative mode
Break a chest, trapped chest, shulker box, ender chest, gold block, or other block that angers piglins
Enter survival mode
Here, the piglins will target the player, an occurrence that does not happen in Java Minecraft.
If there are two players with this set up, one in creative mode and the other in survival, if the creative mode player breaks a chest, do the piglins get angry at the survival player?