Monster infighting

Monster Infighting is a mechanic in Minecraft where certain mobs will retaliate against other mobs if they are hit by them.

Explanation
If a hostile mob is directly attacked by another hostile mob, the mob it hit will become angry and will retaliate. This will then cause the first mob to retaliate against the second mob and the two of them will be locked into a duel until one of them dies. This is extremely useful in combat as it distracts two monsters temporarily, kills one of them, and severely weakens the other.

Once a mob has started to retaliate against another, it will not change its target until that mob is dead or out of range. This means that even if the player or another mob attacks an infighting mob, the infighting mob will not change its target. This is possibly to prevent indecisive monsters who never land an attack because their attention would be split between two mobs.

Mob Infighting Behaviors
Not all mobs work the same though. Below is a list of how each mob reacts to being attacked by another.

Other Points of Note

 * Monsters will never retaliate against Ghasts.
 * Endermen retaliate, but this rarely happens since they dodge most projectiles.
 * Not all enemies can incite infighting. Zombies, for example, can only ever hit the player or mob they are currently targeting, so the only way to provoke them into infighting is to get another monster to hit them.
 * For this reason, it is impossible to get two Zombies to fight each other.

Other Mob vs. Mob Scenarios
Some mobs will fight others for reasons other than retaliation. (There might be some missing here. Feel free to add more.)


 * Wolves will attack Skeletons, Wither Skeletons, and Sheep unprovoked.
 * Guardians and Elder Guardians will attack Squids.
 * Llamas will attack wolves.
 * Trader Llamas will attack Zombies and all Illager types. (To protect their Wandering Trader.)
 * All types of Illagers and Zombies will attack all types of Villagers.
 * Ocelots will attack Chickens.
 * Piglins will occasionally hunt Hoglins.
 * The Wither will attack all mobs except undead mobs and Ghasts.
 * Iron Golems will attack most hostile mobs except Creepers.
 * Snow Golems will attack most hostile mobs.
 * Zoglins will attack most other mobs.
 * Vindicators named "Johnny" will attack most mobs except Illagers. (They will still attack Witches though.)