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 themselves. This is commonly caused when an arrow, shot by a Skeleton, accidentally hits another mob while they are trying to hit a player. Music Discs are obtainable through killing a Creeper by having a skeleton shoot at it enough times.
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.