Minecraft:Mob infighting: Difference between revisions
More actions
Sync: new page from Minecraft |
Fix template calls: add MC/ prefix |
||
| (One intermediate revision by the same user not shown) | |||
| 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 | '''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 10: | Line 10: | ||
== Specific mob behavior == | == Specific mob behavior == | ||
=== Retaliation === | === 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 {{ | 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 {{MC/Cd|minecraft:behavior.hurt_by_target}} in the entity [[Minecraft:JSON]] files. | ||
{| class="wikitable hlist" | {| class="wikitable hlist" | ||
| Line 17: | Line 17: | ||
|- | |- | ||
| | | | ||
* {{ | * {{MC/Entitylink|Bogged}} | ||
* {{ | * {{MC/Entitylink|Cave Spider}} | ||
* {{ | * {{MC/Entitylink|Enderman}} | ||
* {{ | * {{MC/Entitylink|Iron Golem}} | ||
* {{ | * {{MC/Entitylink|Nautilus}} | ||
* {{ | * {{MC/Entitylink|Parched}} | ||
* {{ | * {{MC/Entitylink|Skeleton}} | ||
* {{ | * {{MC/Entitylink|Spider}} | ||
* {{ | * {{MC/Entitylink|Stray}} | ||
* {{ | * {{MC/Entitylink|Warden}} | ||
* {{ | * {{MC/Entitylink|Witch}} | ||
* {{ | * {{MC/Entitylink|Wither Skeleton}} | ||
* {{ | * {{MC/Entitylink|Zombie Nautilus}} | ||
'''{{ | '''{{MC/In|bedrock}} only:''' | ||
* {{ | * {{MC/Entitylink|Blaze}} | ||
* {{ | * {{MC/Entitylink|Drowned}} | ||
* {{ | * {{MC/Entitylink|Ghast}} | ||
* {{ | * {{MC/Entitylink|Husk}} | ||
* {{ | * {{MC/Entitylink|Shulker}} | ||
* {{ | * {{MC/Entitylink|Zombie}} | ||
* {{ | * {{MC/Entitylink|Zombie Villager}} | ||
'''{{ | '''{{MC/In|java}} only:''' | ||
* {{ | * {{MC/Entitylink|Killer Bunny}} | ||
| Retaliates normally, as described above. | | Retaliates normally, as described above. | ||
|- | |- | ||
| | | | ||
* {{ | * {{MC/Entitylink|Dolphin}} | ||
* {{ | * {{MC/Entitylink|Piglin}} | ||
* {{ | * {{MC/Entitylink|Piglin Brute}} | ||
* {{ | * {{MC/Entitylink|Silverfish}} | ||
* {{ | * {{MC/Entitylink|Vex}} | ||
* {{ | * {{MC/Entitylink|Wolf}} | ||
* {{ | * {{MC/Entitylink|Zombified Piglin}} | ||
'''{{ | '''{{MC/In|java}} only:''' | ||
* {{ | * {{MC/Entitylink|Blaze}} | ||
* {{ | * {{MC/Entitylink|Drowned}} | ||
* {{ | * {{MC/Entitylink|Endermite}} | ||
* {{ | * {{MC/Entitylink|Husk}} | ||
* {{ | * {{MC/Entitylink|Zombie}} | ||
* {{ | * {{MC/Entitylink|Zombie Villager}} | ||
| 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.{{only|java|short=true}}<ref>{{bug|MC-227625||Piglins, piglin brutes and hoglins can still attack goats when attacked}}</ref> In ''[[Minecraft:Bedrock Edition]]'', if the {{ | | 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.{{only|java|short=true}}<ref>{{bug|MC-227625||Piglins, piglin brutes and hoglins can still attack goats when attacked}}</ref> In ''[[Minecraft:Bedrock Edition]]'', if the {{MC/Cd|broadcast_anger}} field is set to {{MC/Cd|true}} in the {{MC/Cd|minecraft:angry}} component in the entity [[Minecraft:JSON]] files, it makes the mob a pack mob. | ||
|- | |- | ||
| {{ | | {{MC/Entitylink|Bee}} | ||
| Bees are a pack mob (see above) but they attack back only once until they are made angry again. | | Bees are a pack mob (see above) but they attack back only once until they are made angry again. | ||
|- | |- | ||
| {{ | | {{MC/Entitylink|Hoglin}} | ||
| Hoglins are a pack mob (see above) but only adults can alert others, when attacked. Babies cannot. | | Hoglins are a pack mob (see above) but only adults can alert others, when attacked. Babies cannot. | ||
|- | |- | ||
|{{ | |{{MC/Entitylink|Shulker}} | ||
|In [[Minecraft:Java Edition]] shulkers are a pack mob (see above) but they can retaliate against each other. | |In [[Minecraft:Java Edition]] shulkers are a pack mob (see above) but they can retaliate against each other. | ||
|- | |- | ||
| {{ | | {{MC/Entitylink|Zoglin}} | ||
| Adults only retaliate. Babies cannot. | | Adults only retaliate. Babies cannot. | ||
|- | |- | ||
| {{ | | {{MC/Entitylink|Polar Bear}} | ||
| Retaliates as a pack mob only when a baby polar bear is attacked. | | Retaliates as a pack mob only when a baby polar bear is attacked. | ||
|- | |- | ||
| {{ | | {{MC/Entitylink|Wither}} | ||
| Retaliates normally, but not against undead mobs. | | Retaliates normally, but not against undead mobs. | ||
|- | |- | ||
| {{ | | {{MC/Entitylink|Breeze}}{{only|be|short=true}} | ||
| Retaliates normally, but not against | | Retaliates normally, but not against trial chambers mobs. | ||
|- | |- | ||
| {{ | | {{MC/Entitylink|Creeper}} | ||
| Retaliates only if it is not already chasing the player. | | Retaliates only if it is not already chasing the player. | ||
|- | |- | ||
| | | | ||
* {{ | * {{MC/Entitylink|Evoker}} | ||
* {{ | * {{MC/Entitylink|Pillager}} | ||
* {{ | * {{MC/Entitylink|Ravager}} | ||
* {{ | * {{MC/Entitylink|Vindicator}} | ||
'''{{ | '''{{MC/In|java}} only:''' | ||
* {{ | * {{MC/Entitylink|Illusioner}} | ||
| 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. {{ | | 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. {{MC/In|Java}}, ravagers are also a pack mob and call other ravagers when attacked. | ||
|- | |- | ||
| {{ | | {{MC/Entitylink|Llama}}, {{MC/Entitylink|Trader Llama}} | ||
| 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. | | 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. | ||
|- | |- | ||
| {{ | | {{MC/Entitylink|Panda}} | ||
| Aggressive pandas only retaliate. All other types try to attack back only once. | | Aggressive pandas only retaliate. All other types try to attack back only once. | ||
|- | |- | ||
| | | | ||
* {{ | * {{MC/Entitylink|Axolotl}} | ||
* {{ | * {{MC/Entitylink|Cat}} | ||
* {{ | * {{MC/Entitylink|Creaking}} | ||
* {{ | * {{MC/Entitylink|Elder Guardian}} | ||
* {{ | * {{MC/Entitylink|Ender Dragon}} | ||
* {{ | * {{MC/Entitylink|Frog}} | ||
* {{ | * {{MC/Entitylink|Fox}} | ||
* {{ | * {{MC/Entitylink|Giant}} | ||
* {{ | * {{MC/Entitylink|Goat}} | ||
* {{ | * {{MC/Entitylink|Guardian}} | ||
* {{ | * {{MC/Entitylink|Magma Cube}} | ||
* {{ | * {{MC/Entitylink|Ocelot}} | ||
* {{ | * {{MC/Entitylink|Phantom}} | ||
* {{ | * {{MC/Entitylink|Slime}} | ||
* {{ | * {{MC/Entitylink|Snow Golem}} | ||
'''{{ | '''{{MC/In|bedrock}} only:''' | ||
* {{ | * {{MC/Entitylink|Endermite}} | ||
'''{{ | '''{{MC/In|java}} only:''' | ||
* {{ | * {{MC/Entitylink|Breeze}} | ||
* {{ | * {{MC/Entitylink|Ghast}} | ||
| Does not retaliate. | | Does not retaliate. | ||
|} | |} | ||
;Notes | ;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. | * 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 | * 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 | * 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. | ||
* | * Withers in ''[[Minecraft:Bedrock Edition]]'' can retaliate only against invisible mobs, because it would already attack non-undead mobs instantly. | ||
=== Hunting === | === Hunting === | ||
| Line 146: | Line 146: | ||
! Prey | ! Prey | ||
|- | |- | ||
| {{ | | {{MC/Entitylink|Axolotl}} | ||
| | | | ||
* {{ | * {{MC/Entitylink|Cod}} | ||
* {{ | * {{MC/Entitylink|Drowned}} | ||
* {{ | * {{MC/Entitylink|Elder Guardian}} | ||
* {{ | * {{MC/Entitylink|Glow Squid}} | ||
* {{ | * {{MC/Entitylink|Guardian}} | ||
* {{ | * {{MC/Entitylink|Pufferfish}} | ||
* {{ | * {{MC/Entitylink|Salmon}} | ||
* {{ | * {{MC/Entitylink|Squid}} | ||
* {{ | * {{MC/Entitylink|Tadpole}} | ||
* {{ | * {{MC/Entitylink|Tropical Fish}} | ||
|- | |- | ||
| | | | ||
* {{ | * {{MC/Entitylink|Bogged}} | ||
* {{ | * {{MC/Entitylink|Parched}} | ||
* {{ | * {{MC/Entitylink|Skeleton}} | ||
* {{ | * {{MC/Entitylink|Stray}} | ||
| | | | ||
* {{ | * {{MC/Entitylink|Turtle|Baby Turtle}} | ||
* {{ | * {{MC/Entitylink|Iron Golem}} | ||
|- | |- | ||
| {{ | | {{MC/Entitylink|Breeze}} | ||
| {{ | | {{MC/Entitylink|Iron Golem}} | ||
|- | |- | ||
| | | | ||
* {{ | * {{MC/Entitylink|Cave Spider}} | ||
* {{ | * {{MC/Entitylink|Spider}} | ||
| {{ | | {{MC/Entitylink|Iron Golem}} | ||
|- | |- | ||
| {{ | | {{MC/Entitylink|Cat}} | ||
| | | | ||
* {{ | * {{MC/Entitylink|Turtle|Baby Turtle}} | ||
* {{ | * {{MC/Entitylink|Rabbit}} | ||
|- | |- | ||
| {{ | | {{MC/Entitylink|Drowned}} | ||
| | | | ||
* {{ | * {{MC/Entitylink|Axolotl}} | ||
* {{ | * {{MC/Entitylink|Turtle|Baby Turtle}} | ||
* {{ | * {{MC/Entitylink|Iron Golem}} | ||
* {{ | * {{MC/Entitylink|Villager}} | ||
* {{ | * {{MC/Entitylink|Wandering Trader}} | ||
'''{{ | '''{{MC/In|bedrock}} only:''' | ||
* {{ | * {{MC/Entitylink|Snow Golem}} | ||
|- | |- | ||
| | | | ||
* {{ | * {{MC/Entitylink|Elder Guardian}} | ||
* {{ | * {{MC/Entitylink|Guardian}} | ||
| | | | ||
* {{ | * {{MC/Entitylink|Axolotl}} | ||
* {{ | * {{MC/Entitylink|Glow Squid}} | ||
* {{ | * {{MC/Entitylink|Squid}} | ||
|- | |- | ||
| {{ | | {{MC/Entitylink|Enderman}} | ||
| {{ | | {{MC/Entitylink|Endermite}} | ||
|- | |- | ||
| {{ | | {{MC/Entitylink|Endermite}} | ||
| {{ | | {{MC/Entitylink|Enderman}}{{only|bedrock|short=1}} | ||
|- | |- | ||
| | | | ||
* {{ | * {{MC/Entitylink|Evoker}} | ||
* {{ | * {{MC/Entitylink|Vindicator}} | ||
'''{{ | '''{{MC/In|java}} only:''' | ||
* {{ | * {{MC/Entitylink|Illusioner}} | ||
| | | | ||
* {{ | * {{MC/Entitylink|Iron Golem}} | ||
* {{ | * {{MC/Entitylink|Villager|Adult Villager}} | ||
* {{ | * {{MC/Entitylink|Wandering Trader}} | ||
'''{{ | '''{{MC/In|bedrock}} only:''' | ||
* {{ | * {{MC/Entitylink|Snow Golem}} | ||
|- | |- | ||
| {{ | | {{MC/Entitylink|Frog}} | ||
| | | | ||
* {{ | * {{MC/Entitylink|Magma Cube|Small Magma Cube}} | ||
* {{ | * {{MC/Entitylink|Slime|Small Slime}} | ||
|- | |- | ||
| {{ | | {{MC/Entitylink|Fox}} | ||
| | | | ||
* {{ | * {{MC/Entitylink|Turtle|Baby Turtle}} | ||
* {{ | * {{MC/Entitylink|Cod}} | ||
* {{ | * {{MC/Entitylink|Chicken}} | ||
* {{ | * {{MC/Entitylink|Rabbit}} | ||
* {{ | * {{MC/Entitylink|Salmon}} | ||
* {{ | * {{MC/Entitylink|Tropical Fish}} | ||
|- | |- | ||
| {{ | | {{MC/Entitylink|Goat}} | ||
| Randomly attack mobs (including armor stands{{only|java|short=1}} and cameras) that remain stationary for too long. | | Randomly attack mobs (including armor stands{{only|java|short=1}} and cameras) that remain stationary for too long. | ||
|- | |- | ||
| | | | ||
* {{ | * {{MC/Entitylink|Husk}} | ||
* {{ | * {{MC/Entitylink|Zombie}} | ||
* {{ | * {{MC/Entitylink|Zombie Villager}} | ||
'''{{ | '''{{MC/In|bedrock}} only:''' | ||
* {{ | * {{MC/Entitylink|Old Zombie Villager}} | ||
| | | | ||
* {{ | * {{MC/Entitylink|Turtle|Baby Turtle}} | ||
* {{ | * {{MC/Entitylink|Iron Golem}} | ||
* {{ | * {{MC/Entitylink|Villager}} | ||
* {{ | * {{MC/Entitylink|Wandering Trader}} | ||
'''{{ | '''{{MC/In|bedrock}} only:''' | ||
* {{ | * {{MC/Entitylink|Old Villager}} | ||
* {{ | * {{MC/Entitylink|Snow Golem}} | ||
|- | |- | ||
| {{ | | {{MC/Entitylink|Iron Golem}} | ||
| Every [[Minecraft:monster]] except for the | | Every [[Minecraft:monster]] except for the creeper. | ||
|- | |- | ||
| {{ | | {{MC/Entitylink|Killer Bunny}}{{only|java|short=1}} | ||
| {{ | | {{MC/Entitylink|Wolf}} | ||
|- | |- | ||
| {{ | | {{MC/Entitylink|Llama}} | ||
| {{ | | {{MC/Entitylink|Wolf}} | ||
|- | |- | ||
| {{ | | {{MC/Entitylink|Magma Cube}} | ||
| {{ | | {{MC/Entitylink|Iron Golem}} | ||
|- | |- | ||
| | | | ||
* {{ | * {{MC/Entitylink|Nautilus}} | ||
* {{ | * {{MC/Entitylink|Zombie Nautilus}} | ||
| | | | ||
* {{ | * {{MC/Entitylink|Pufferfish}} | ||
|- | |- | ||
| {{ | | {{MC/Entitylink|Ocelot}} | ||
| | | | ||
* {{ | * {{MC/Entitylink|Turtle|Baby Turtle}} | ||
* {{ | * {{MC/Entitylink|Chicken}} | ||
|- | |- | ||
| | | | ||
* {{ | * {{MC/Entitylink|Piglin}} | ||
* {{ | * {{MC/Entitylink|Piglin Brute}} | ||
| | | | ||
* {{ | * {{MC/Entitylink|Wither}} | ||
* {{ | * {{MC/Entitylink|Wither Skeleton}} | ||
* {{ | * {{MC/Entitylink|Hoglin}} (ocassionally hunted) | ||
* {{ | * {{MC/Entitylink|Iron Golem}} | ||
* {{ | * {{MC/Entitylink|Snow Golem}} (immediately if any of those golems attacks a piglin or a piglin brute) | ||
|- | |- | ||
| | | | ||
* {{ | * {{MC/Entitylink|Pillager}} | ||
* {{ | * {{MC/Entitylink|Ravager}} | ||
* {{ | * {{MC/Entitylink|Vex}} | ||
| | | | ||
* {{ | * {{MC/Entitylink|Iron Golem}} | ||
* {{ | * {{MC/Entitylink|Villager|Adult Villager}} | ||
* {{ | * {{MC/Entitylink|Wandering Trader}} | ||
|- | |- | ||
| {{ | | {{MC/Entitylink|Polar Bear}} | ||
| {{ | | {{MC/Entitylink|Fox}} | ||
|- | |- | ||
| {{ | | {{MC/Entitylink|Silverfish}} | ||
| | | | ||
'''{{ | '''{{MC/In|bedrock}} only:''' | ||
* {{ | * {{MC/Entitylink|Iron Golem}} | ||
* {{ | * {{MC/Entitylink|Snow Golem}} | ||
|- | |- | ||
| {{ | | {{MC/Entitylink|Slime}} | ||
| | | | ||
* {{ | * {{MC/Entitylink|Iron Golem}} | ||
* {{ | * {{MC/Entitylink|Snow Golem}}{{only|bedrock|short=1}} | ||
|- | |- | ||
| {{ | | {{MC/Entitylink|Snow Golem}} | ||
| Every [[Minecraft:monster]] except for the | | Every [[Minecraft:monster]] except for the ghast and hoglin{{only|bedrock|short=1}} | ||
|- | |- | ||
| {{ | | {{MC/Entitylink|Tamed Wolf}} | ||
| Every mob that the owner attacks except for | | Every mob that the owner attacks except for creepers, ghasts and other tamed wolves. | ||
|- | |- | ||
| {{ | | {{MC/Entitylink|Trader Llama}} | ||
| | | | ||
* {{ | * {{MC/Entitylink|Drowned}} | ||
* {{ | * {{MC/Entitylink|Evoker}} | ||
* {{ | * {{MC/Entitylink|Husk}} | ||
* {{ | * {{MC/Entitylink|Pillager}} | ||
* {{ | * {{MC/Entitylink|Ravager}} | ||
* {{ | * {{MC/Entitylink|Vex}} | ||
* {{ | * {{MC/Entitylink|Vindicator}} | ||
* {{ | * {{MC/Entitylink|Wolf}} | ||
* {{ | * {{MC/Entitylink|Zombie}} | ||
* {{ | * {{MC/Entitylink|Zombie Villager}} | ||
* Any mob that attacks its | * Any mob that attacks its wandering trader | ||
'''{{ | '''{{MC/In|java}} only:''' | ||
* {{ | * {{MC/Entitylink|Illusioner}} | ||
|- | |- | ||
| {{ | | {{MC/Entitylink|Fox|Trusting Fox}} | ||
| Any mob that attacks its trusted player except other | | Any mob that attacks its trusted player except other trusting foxes and ghasts. | ||
'''Natural enemies:''' | '''Natural enemies:''' | ||
* {{ | * {{MC/Entitylink|Turtle|Baby Turtle}} | ||
* {{ | * {{MC/Entitylink|Cod}} | ||
* {{ | * {{MC/Entitylink|Chicken}} | ||
* {{ | * {{MC/Entitylink|Rabbit}} | ||
* {{ | * {{MC/Entitylink|Salmon}} | ||
* {{ | * {{MC/Entitylink|Tropical Fish}} | ||
|- | |- | ||
|{{ | |{{MC/Entitylink|Vindicator}} named "Johnny" | ||
| Every mob except fellow illagers, | | Every mob except fellow illagers, ghasts, and [[Minecraft:agent]]s. | ||
'''{{ | '''{{MC/In|bedrock|education}} only:''' | ||
* {{ | * {{MC/Entitylink|Armor Stand}} | ||
* {{ | * {{MC/Entitylink|Camera}} | ||
|- | |- | ||
|{{ | |{{MC/Entitylink|Warden}} | ||
| Every mob except other wardens. | | Every mob except other wardens. | ||
'''{{ | '''{{MC/In|bedrock|education}} only:''' | ||
* {{ | * {{MC/Entitylink|Camera}} | ||
|- | |- | ||
|{{ | |{{MC/Entitylink|Witch}} | ||
| | | | ||
'''{{ | '''{{MC/In|bedrock}} only:''' | ||
* {{ | * {{MC/Entitylink|Iron Golem}} | ||
* {{ | * {{MC/Entitylink|Snow Golem}} | ||
'''Only as part of a patrol {{ | '''Only as part of a patrol {{MC/In|java}} only:''' | ||
* {{ | * {{MC/Entitylink|Iron Golem}} | ||
|- | |- | ||
|{{ | |{{MC/Entitylink|Wither}} | ||
| Every mob except [[Minecraft:undead]] mobs, ghasts, and agents. | | Every mob except [[Minecraft:undead]] mobs, ghasts, and agents. | ||
'''{{ | '''{{MC/In|bedrock|education}} only:''' | ||
* {{ | * {{MC/Entitylink|Camera}} | ||
|- | |- | ||
|{{ | |{{MC/Entitylink|Wither Skeleton}} | ||
| | | | ||
* {{ | * {{MC/Entitylink|Iron Golem}} | ||
* {{ | * {{MC/Entitylink|Turtle|Baby Turtle}} | ||
* {{ | * {{MC/Entitylink|Piglin}} | ||
* {{ | * {{MC/Entitylink|Piglin Brute}} | ||
|- | |- | ||
|{{ | |{{MC/Entitylink|Wolf}} | ||
| | | | ||
* {{ | * {{MC/Entitylink|Turtle|Baby Turtle}} | ||
* {{ | * {{MC/Entitylink|Bogged}} | ||
* {{ | * {{MC/Entitylink|Fox}} | ||
* {{ | * {{MC/Entitylink|Parched}} | ||
* {{ | * {{MC/Entitylink|Rabbit}} | ||
* {{ | * {{MC/Entitylink|Sheep}} | ||
* {{ | * {{MC/Entitylink|Skeleton}} | ||
* {{ | * {{MC/Entitylink|Stray}} | ||
* {{ | * {{MC/Entitylink|Wither}} | ||
* {{ | * {{MC/Entitylink|Wither Skeleton}} | ||
|- | |- | ||
|{{ | |{{MC/Entitylink|Zoglin}} | ||
| Every mob except creepers, ghasts, agents and other zoglins. | | Every mob except creepers, ghasts, agents and other zoglins. | ||
'''{{ | '''{{MC/In|bedrock|education}} only:''' | ||
* {{ | * {{MC/Entitylink|Armor Stand}} | ||
* {{ | * {{MC/Entitylink|Camera}} | ||
|} | |} | ||
== See also == | == See also == | ||
* | * Mob AI | ||
* [[Minecraft:Music Disc]] | * [[Minecraft:Music Disc]] | ||
* | * Mob fleeing | ||
== References == | == References == | ||
{{ | {{MC/Reflist}} | ||
== Navigation == | == Navigation == | ||
{{Navbox combat|general}} | {{MC/Navbox combat|general}} | ||
{{Navbox gameplay}} | {{MC/Navbox gameplay}} | ||
es:Pelea entre monstruos | |||
ja:報復 | |||
pt:Luta de criaturas | |||
Latest revision as of 20:38, 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
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
- REDIRECT Template:Code
Template:Redr in the entity Minecraft:JSON files.
| Mob | Behavior |
|---|---|
in Template:Editions only:
in Template:Editions only:
|
Retaliates normally, as described above. |
in Template:Editions 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:Redr field is set to
Template:Redr in the
Template:Redr component in the entity Minecraft:JSON files, it makes the mob a pack mob. |
|
Bees are a pack mob (see above) but they attack back only once until they are made angry again. |
|
Hoglins are a pack mob (see above) but only adults can alert others, when attacked. Babies cannot. |
|
In Minecraft:Java Edition shulkers are a pack mob (see above) but they can retaliate against each other. |
|
Adults only retaliate. Babies cannot. |
|
Retaliates as a pack mob only when a baby polar bear is attacked. |
|
Retaliates normally, but not against undead mobs. |
|
Retaliates normally, but not against trial chambers mobs. |
|
Retaliates only if it is not already chasing the player. |
in Template:Editions 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. in Template:Editions, ravagers are also a pack mob and call other ravagers when attacked. |
|
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. |
|
Aggressive pandas only retaliate. All other types try to attack back only once. |
in Template:Editions only:
in Template:Editions 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.
See also
- Mob AI
- Minecraft:Music Disc
- Mob fleeing
References
<references group="">
</references>
| |||||||||||||||
| |||||||||||||||
| |||||||||||||||
es:Pelea entre monstruos ja:報復 pt:Luta de criaturas