Toggle menu
Toggle preferences menu
Toggle personal menu
Not logged in
Your IP address will be publicly visible if you make any edits.

Minecraft:Mob infighting: Difference between revisions

From SAS Gaming Wiki
SyncBot (talk | contribs)
Sync: new page from Minecraft
 
SyncBot (talk | contribs)
Remove broken links to missing pages
 
Line 1: Line 1:
'''Mob infighting''' is a mechanic in ''Minecraft'' in which certain [[Minecraft:mob]]s retaliate against other mobs, as part of their [[Minecraft:mob AI]].
'''Mob infighting''' is a mechanic in ''Minecraft'' in which certain [[Minecraft:mob]]s retaliate against other mobs, as part of their mob AI.


== Overview ==
== Overview ==
Line 83: Line 83:
|-
|-
| {{EntityLink|Breeze}}{{only|be|short=true}}
| {{EntityLink|Breeze}}{{only|be|short=true}}
| Retaliates normally, but not against [[Minecraft:trial chambers]] mobs.
| Retaliates normally, but not against trial chambers mobs.
|-
|-
| {{EntityLink|Creeper}}
| {{EntityLink|Creeper}}
Line 131: Line 131:


;Notes
;Notes
* [[Minecraft:Endermen]] retaliate, but this rarely happens because they are immune to most projectiles. Endermen become hostile toward iron golems, the ender dragon, withers, zoglins and "Johnny" vindicators if damaged by any one of them.
* Endermen retaliate, but this rarely happens because they are immune to most projectiles. Endermen become hostile toward iron golems, the ender dragon, withers, zoglins and "Johnny" vindicators if damaged by any one of them.
* Witches don't usually fight one another, but when a battle between two witches begins, it does not end without outside interference, because they continually heal themselves with potions of Healing.
* Witches don't usually fight one another, but when a battle between two witches begins, it does not end without outside interference, because they continually heal themselves with potions of Healing.
* Skeletons and witches can get into an eternal infighting battle. The witch's harming potions heal the skeleton, and the witch also drinks enough healing potions to counter the skeleton's arrows.
* Skeletons and witches can get into an eternal infighting battle. The witch's harming potions heal the skeleton, and the witch also drinks enough healing potions to counter the skeleton's arrows.
* Most mobs do not retaliate to being rammed by a [[Minecraft:goat]], except for [[Minecraft:piglin]]s, [[Minecraft:piglin brute]]s, [[Minecraft:hoglin]]s, [[Minecraft:zoglin]]s, [[Minecraft:vindicator]]s named "Johnny," and [[Minecraft:warden]]s.
* Most mobs do not retaliate to being rammed by a goat, except for [[Minecraft:piglin]]s, piglin brutes, hoglins, zoglins, vindicators named "Johnny," and [[Minecraft:warden]]s.
* In Bedrock Edition, mobs do not retaliate to being damaged by [[Minecraft:firework rocket]]s.
* In Bedrock Edition, mobs do not retaliate to being damaged by firework rockets.
* A creeper retaliates against a mob that attacks it, but only if the player is outside the creeper's sight range. If not, the creeper continues pursuing the player.
* A creeper retaliates against a mob that attacks it, but only if the player is outside the creeper's sight range. If not, the creeper continues pursuing the player.
* Breaking gold, opening a chest, or failing to wear gold armor near a [[Minecraft:piglin]] causes the piglin to set the player as its permanent target. This means that a piglin does not infight with other mobs once it becomes angry at the player, even if the player never directly attacks the piglin.
* Breaking gold, opening a chest, or failing to wear gold armor near a [[Minecraft:piglin]] causes the piglin to set the player as its permanent target. This means that a piglin does not infight with other mobs once it becomes angry at the player, even if the player never directly attacks the piglin.
* [[Minecraft:Withers]] in ''[[Minecraft:Bedrock Edition]]'' can retaliate only against invisible mobs, because it would already attack non-undead mobs instantly.
* Withers in ''[[Minecraft:Bedrock Edition]]'' can retaliate only against invisible mobs, because it would already attack non-undead mobs instantly.


=== Hunting ===
=== Hunting ===
Line 255: Line 255:
|-
|-
| {{EntityLink|Iron Golem}}
| {{EntityLink|Iron Golem}}
| Every [[Minecraft:monster]] except for the [[Minecraft:creeper]].
| Every [[Minecraft:monster]] except for the creeper.
|-
|-
| {{EntityLink|Killer Bunny}}{{only|java|short=1}}
| {{EntityLink|Killer Bunny}}{{only|java|short=1}}
Line 311: Line 311:
|-
|-
| {{EntityLink|Snow Golem}}
| {{EntityLink|Snow Golem}}
| Every [[Minecraft:monster]] except for the [[Minecraft:ghast]] and [[Minecraft:hoglin]]{{only|bedrock|short=1}}
| Every [[Minecraft:monster]] except for the ghast and hoglin{{only|bedrock|short=1}}
|-
|-
| {{EntityLink|Tamed Wolf}}
| {{EntityLink|Tamed Wolf}}
| Every mob that the owner attacks except for [[Minecraft:creeper]]s, [[Minecraft:ghast]]s and other [[Minecraft:tamed wolves]].
| Every mob that the owner attacks except for creepers, ghasts and other tamed wolves.
|-
|-
| {{EntityLink|Trader Llama}}
| {{EntityLink|Trader Llama}}
Line 328: Line 328:
* {{EntityLink|Zombie}}
* {{EntityLink|Zombie}}
* {{EntityLink|Zombie Villager}}
* {{EntityLink|Zombie Villager}}
* Any mob that attacks its [[Minecraft:wandering trader]]
* Any mob that attacks its wandering trader


'''{{IN|java}} only:'''
'''{{IN|java}} only:'''
Line 334: Line 334:
|-
|-
| {{EntityLink|Fox|Trusting Fox}}
| {{EntityLink|Fox|Trusting Fox}}
| Any mob that attacks its trusted player except other [[Minecraft:fox|trusting foxes]] and [[Minecraft:ghasts]].
| Any mob that attacks its trusted player except other trusting foxes and ghasts.


'''Natural enemies:'''
'''Natural enemies:'''
Line 345: Line 345:
|-
|-
|{{EntityLink|Vindicator}} named "Johnny"
|{{EntityLink|Vindicator}} named "Johnny"
| Every mob except fellow illagers, [[Minecraft:ghast]]s, and [[Minecraft:agent]]s.
| Every mob except fellow illagers, ghasts, and [[Minecraft:agent]]s.


'''{{IN|bedrock|education}} only:'''
'''{{IN|bedrock|education}} only:'''
Line 403: Line 403:


== See also ==
== See also ==
* [[Minecraft:Mob AI]]
* Mob AI
* [[Minecraft:Music Disc]]
* [[Minecraft:Music Disc]]
* [[Minecraft:Mob fleeing]]
* Mob fleeing


== References ==
== References ==
Line 414: Line 414:
{{Navbox gameplay}}
{{Navbox gameplay}}


[[Minecraft:es:Pelea entre monstruos]]
es:Pelea entre monstruos
[[Minecraft:ja:報復]]
ja:報復
[[Minecraft:pt:Luta de criaturas]]
pt:Luta de criaturas

Latest revision as of 15:56, 9 April 2026

Mob infighting is a mechanic in Minecraft in which certain Minecraft:mobs retaliate against other mobs, as part of their mob AI.

Overview

File:SkeletonvsSpiderJockeySkeleton.png
Two skeletons fighting each other.

If a Minecraft:mob capable of attacking is directly attacked by a player or another mob, the damaged mob stops attacking its current target and attacks the mob or player that damaged it. This causes the mob that did the damage to retaliate in turn, and the two of them become locked into a duel until one of them dies. This is useful in combat as it distracts two monsters temporarily, kills one of them, and severely weakens the other.

Once a mob has taken damage from a mob or player, that mob or player is set as the mob's permanent target. This means that even if another mob or player attacks an infighting mob, the infighting mob does not stop trying to attack its permanent target. A mob can refuse to infight with another monster if the player or a mob already attacked it, so the player or a mob was already set as the mob's permanent target. That mob does not infight with any other mob until the attacking player or mob dies. If the attacker goes beyond the mob's sight range, this resets the retaliating behavior and the mob either returns to neutral mode or searches for a new target.

Specific mob behavior

Retaliation

Not all mobs have the same infighting behavior. Below is a list of how each mob reacts to being attacked by another. In Minecraft:Bedrock Edition, retaliation is controlled by the AI Goal component Template:Cd in the entity Minecraft:JSON files.

Mob Behavior

Template:IN only:

Template:IN only:

Retaliates normally, as described above.

Template:IN only:

These are pack mobs. When they retaliate, they call nearby mobs of the same type to help them if those mobs aren't already targeting another mob or player. Mobs that respond to the call set the victim as their permanent target. Additionally, piglins and piglin brutes retaliate in groups if a piglin/piglin brute is attacked by any mob including goats.Template:Only<ref>Template:Bug</ref> In Minecraft:Bedrock Edition, if the Template:Cd field is set to Template:Cd in the Template:Cd component in the entity Minecraft:JSON files, it makes the mob a pack mob.
Template:EntityLink Bees are a pack mob (see above) but they attack back only once until they are made angry again.
Template:EntityLink Hoglins are a pack mob (see above) but only adults can alert others, when attacked. Babies cannot.
Template:EntityLink


In Minecraft:Java Edition shulkers are a pack mob (see above) but they can retaliate against each other.
Template:EntityLink Adults only retaliate. Babies cannot.
Template:EntityLink Retaliates as a pack mob only when a baby polar bear is attacked.
Template:EntityLink Retaliates normally, but not against undead mobs.
Template:EntityLinkTemplate:Only Retaliates normally, but not against trial chambers mobs.
Template:EntityLink Retaliates only if it is not already chasing the player.

Template:IN only:

These are all the Minecraft:illager monsters. They retaliate against non-illager monsters. Additionally, evokers sometimes forget their target and focus back on the player. Template:IN, ravagers are also a pack mob and call other ravagers when attacked.
Template:EntityLink, Template:EntityLink Attacks back only once, although two llamas can alternate spitting at each other until one of them dies or is attacked by a different mob.
Template:EntityLink Aggressive pandas only retaliate. All other types try to attack back only once.

Template:IN only:

Template:IN only:

Does not retaliate.
Notes
  • Endermen retaliate, but this rarely happens because they are immune to most projectiles. Endermen become hostile toward iron golems, the ender dragon, withers, zoglins and "Johnny" vindicators if damaged by any one of them.
  • Witches don't usually fight one another, but when a battle between two witches begins, it does not end without outside interference, because they continually heal themselves with potions of Healing.
  • Skeletons and witches can get into an eternal infighting battle. The witch's harming potions heal the skeleton, and the witch also drinks enough healing potions to counter the skeleton's arrows.
  • Most mobs do not retaliate to being rammed by a goat, except for Minecraft:piglins, piglin brutes, hoglins, zoglins, vindicators named "Johnny," and Minecraft:wardens.
  • In Bedrock Edition, mobs do not retaliate to being damaged by firework rockets.
  • A creeper retaliates against a mob that attacks it, but only if the player is outside the creeper's sight range. If not, the creeper continues pursuing the player.
  • Breaking gold, opening a chest, or failing to wear gold armor near a Minecraft:piglin causes the piglin to set the player as its permanent target. This means that a piglin does not infight with other mobs once it becomes angry at the player, even if the player never directly attacks the piglin.
  • Withers in Minecraft:Bedrock Edition can retaliate only against invisible mobs, because it would already attack non-undead mobs instantly.

Hunting

Some mobs fight others for other reasons than retaliation, such as hunting and fighting natural enemies.

Predator Prey
Template:EntityLink
Template:EntityLink Template:EntityLink
Template:EntityLink
Template:EntityLink
Template:EntityLink

Template:IN only:

Template:EntityLink Template:EntityLink
Template:EntityLink Template:EntityLinkTemplate:Only

Template:IN only:

Template:IN only:

Template:EntityLink
Template:EntityLink
Template:EntityLink Randomly attack mobs (including armor standsTemplate:Only and cameras) that remain stationary for too long.

Template:IN only:

Template:IN only:

Template:EntityLink Every Minecraft:monster except for the creeper.
Template:EntityLinkTemplate:Only Template:EntityLink
Template:EntityLink Template:EntityLink
Template:EntityLink Template:EntityLink
Template:EntityLink
Template:EntityLink Template:EntityLink
Template:EntityLink

Template:IN only:

Template:EntityLink
Template:EntityLink Every Minecraft:monster except for the ghast and hoglinTemplate:Only
Template:EntityLink Every mob that the owner attacks except for creepers, ghasts and other tamed wolves.
Template:EntityLink

Template:IN only:

Template:EntityLink Any mob that attacks its trusted player except other trusting foxes and ghasts.

Natural enemies:

Template:EntityLink named "Johnny" Every mob except fellow illagers, ghasts, and Minecraft:agents.

Template:IN only:

Template:EntityLink Every mob except other wardens.

Template:IN only:

Template:EntityLink

Template:IN only:

Only as part of a patrol Template:In only:

Template:EntityLink Every mob except Minecraft:undead mobs, ghasts, and agents.

Template:IN only:

Template:EntityLink
Template:EntityLink
Template:EntityLink Every mob except creepers, ghasts, agents and other zoglins.

Template:IN only:

See also

References

Template:Reflist

Navigation

Template:Navbox combat Template:Navbox gameplay

es:Pelea entre monstruos ja:報復 pt:Luta de criaturas