If there’s a piglin nearby, and you open an Ender Chest, the piglin starts attacking you. An Ender Chest, mind you, something you physically cannot steal from, because it’ll only let you access the items you put in there previously.
Linked issues
Comments 9
This is the game working as intended. Piglins will attack you when you open or brake any containers near them, including chests, ender chests, and barrels.
Here is a quote from the Official Minecraft Wiki:
"Piglins are provoked when players (with or without gold armor) attack them or when a nearby chest, trapped chest, ender chest, barrel or shulker box is opened or broken."
Thank you for your report!
We're actually already tracking this issue at MCPE-70331, so I will resolve and link this ticket as a duplicate.
That ticket has already been resolved as working as intended, which means this is not considered a bug and won't be fixed. Please do not leave a comment on the linked ticket.
If you haven't already, you might like to make use of the search feature to see if the issue has already been mentioned.
Quick Links:
📓 Issue Guidelines – 💬 Community Support – 📧 Customer Support – ✍️ Feedback and Suggestions – 📖 Game Wiki
This is intended, piglins can still attack you when you open a chest, even with gold armor.