Hostile is a behavioral game mechanic applied to various Mobs in Minecraft.
Unlike Neutral or Passive mobs, Hostile mobs will usually attack a player on sight whenever they come within the mob's detection radius (typically within 16-blocks of the mob). When a player is detected, the Hostile mob will turn to face a player, and then begin to chase and attack them. A Hostile mob will never retreat, and it will continue attacking until either they, or their target, dies.
Hostile mobs may also attack other mobs they encounter. One common example of this is when Zombies invade Villages to attack Villagers at Night. It is also possible for two Hostile or Neutral mobs, who would not typically attack one another, to fight among-st themselves. This is commonly caused when an arrow, shot by a Skeleton, accidentally hits another mob while they are trying to hit a player.
Certain mobs may be Neutral in some situations, but Hostile in others. One example of this, are Polar Bears. An adult Polar Bear can be neutral, but it becomes hostile if one of their cubs is nearby a player.
- The splash text "Monster infighting" references the aforementioned possibility of turning two mobs against each other.
- When pursuing a Villager, Zombies will ignore players unless they are attacked.