While fighting a piglin, you can give gold ingot, so you have up to 6 seconds to run away from piglin, just right click it with gold ingot. If 3 piglins are chasing you, do the same, just click on all piglins and you can escape from there. They should just ignore gold just to kill player that provoked them.
Linked issues
Comments 3
Thank you for your report!
We're actually already tracking this issue in MC-172097, so I resolved and linked this ticket as a duplicate.
However, that ticket has already been resolved. That means that 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 in the future to see if the issue has already been reported.
Quick Links:
📓 Issue Guidelines – 💬 Community Support – 📧 Customer Support – ✍️ Feedback and Suggestions – 📖 Game Wiki
I think that's how it should be.
You giving Piglins gold, I mean.