Hunting

Hunting is a game mechanic in which one mob hunts another mob. In a way, the hunter mob is a hostile mob to the hunted mob, regardless of the mob's behavior toward the player.

When a mob hunts another, it inflicts damage on its prey by attacking.

Some mobs can be both hunters and hunted, depending on the opposing mob.

Hunter mobs
Some mobs hunt other mobs regardless of their natural hostility toward the player.
 * Axolotls hunt fish, squid and glow squids (They also attack drowned and guardians if tempted by the player with tropical fish)
 * Cats hunt rabbits and baby turtles
 * Endermen hunt endermites
 * Foxes hunt chickens, rabbits, fish (except pufferfish), and baby turtles
 * Guardians hunt squid
 * Illagers (including ravagers) hunt villagers, wandering traders, iron golems, and snow golems
 * Iron golems hunt neutral monsters and all hostile mobs except creepers
 * Llamas hunt wolves
 * Ocelots hunt chickens and baby turtles
 * Piglins hunt hoglins and wither skeletons
 * Polar bears hunt foxes
 * Snow golems hunt all zombie variants (drowned, husks, and zombies)
 * Wither Skeletons hunt piglins
 * Wolves hunt sheep, skeletons, rabbits, foxes, and baby turtles
 * Zombie variants hunt villagers, wandering traders, iron golems, snow golems, baby turtles, and turtle eggs

Hunter mobs that can also be prey

 * Foxes are hunted by wolves and polar bears
 * Illagers are hunted by iron golems
 * Iron golems are hunted by cave spiders, illagers, spiders, witches, withers, zoglins, and all zombie variants (drowned, husks, and zombies)
 * Zombie variants are hunted by iron golems and snow golems