Piglins seem too brave for such greedy selfish creatures. Everyone knows that piglins are greedy (bartering, they kill you if you break gold, the overall fact they like gold.) Therefore, I think they should coward in battle when they know theyre loosing.
So how would they coward out of battle? Well here is how:
1. If they are below 5hp, they will run away. They will continue running away until they have more than 10hp of health. They will however stop for gold.
2. They will run away when the player kills half the piglins in the piglin's group. They will then run in random direction, and will not care if any piglin dies. They will however stop for gold.
3. They will run away if a nearby piglin brute dies, they find the piglin brute almost as a leader or a lawkeeper/guardian (a powerful being) and should run away if they die, after all, someone would have to be REALLY powerful to kill them.
•Piglin Brutes will not do this.
•50% of Piglins will not run away when at low hp if a piglin brute is nearby (they feel pressured to keep fighting). These piglins would be called "normal", the other 50% will be called "Cowards"
•10% of those "normal" piglins will be "brave". Brave piglins will not ever run away from the player. As a young piglin, brave piglins will not run away from the player.
•Piglin brutes will kill piglins who show cowardice in battle, they will however prioritize the attacker over the coward.