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)
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 [[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 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 {{cd|minecraft:behavior.hurt_by_target}} in the entity [[Minecraft:JSON]] files.
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:
|-
|-
|  
|  
* {{EntityLink|Bogged}}
* {{MC/Entitylink|Bogged}}
* {{EntityLink|Cave Spider}}
* {{MC/Entitylink|Cave Spider}}
* {{EntityLink|Enderman}}
* {{MC/Entitylink|Enderman}}
* {{EntityLink|Iron Golem}}
* {{MC/Entitylink|Iron Golem}}
* {{EntityLink|Nautilus}}
* {{MC/Entitylink|Nautilus}}
* {{EntityLink|Parched}}
* {{MC/Entitylink|Parched}}
* {{EntityLink|Skeleton}}
* {{MC/Entitylink|Skeleton}}
* {{EntityLink|Spider}}
* {{MC/Entitylink|Spider}}
* {{EntityLink|Stray}}
* {{MC/Entitylink|Stray}}
* {{EntityLink|Warden}}
* {{MC/Entitylink|Warden}}
* {{EntityLink|Witch}}
* {{MC/Entitylink|Witch}}
* {{EntityLink|Wither Skeleton}}
* {{MC/Entitylink|Wither Skeleton}}
* {{EntityLink|Zombie Nautilus}}
* {{MC/Entitylink|Zombie Nautilus}}


'''{{IN|bedrock}} only:'''
'''{{MC/In|bedrock}} only:'''
* {{EntityLink|Blaze}}
* {{MC/Entitylink|Blaze}}
* {{EntityLink|Drowned}}
* {{MC/Entitylink|Drowned}}
* {{EntityLink|Ghast}}
* {{MC/Entitylink|Ghast}}
* {{EntityLink|Husk}}
* {{MC/Entitylink|Husk}}
* {{EntityLink|Shulker}}
* {{MC/Entitylink|Shulker}}
* {{EntityLink|Zombie}}
* {{MC/Entitylink|Zombie}}
* {{EntityLink|Zombie Villager}}
* {{MC/Entitylink|Zombie Villager}}


'''{{IN|java}} only:'''
'''{{MC/In|java}} only:'''
* {{EntityLink|Killer Bunny}}
* {{MC/Entitylink|Killer Bunny}}
| Retaliates normally, as described above.
| Retaliates normally, as described above.
|-
|-
|
|
* {{EntityLink|Dolphin}}
* {{MC/Entitylink|Dolphin}}
* {{EntityLink|Piglin}}
* {{MC/Entitylink|Piglin}}
* {{EntityLink|Piglin Brute}}
* {{MC/Entitylink|Piglin Brute}}
* {{EntityLink|Silverfish}}
* {{MC/Entitylink|Silverfish}}
* {{EntityLink|Vex}}
* {{MC/Entitylink|Vex}}
* {{EntityLink|Wolf}}
* {{MC/Entitylink|Wolf}}
* {{EntityLink|Zombified Piglin}}
* {{MC/Entitylink|Zombified Piglin}}


'''{{IN|java}} only:'''
'''{{MC/In|java}} only:'''
* {{EntityLink|Blaze}}
* {{MC/Entitylink|Blaze}}
* {{EntityLink|Drowned}}
* {{MC/Entitylink|Drowned}}
* {{EntityLink|Endermite}}
* {{MC/Entitylink|Endermite}}
* {{EntityLink|Husk}}
* {{MC/Entitylink|Husk}}
* {{EntityLink|Zombie}}
* {{MC/Entitylink|Zombie}}
* {{EntityLink|Zombie Villager}}
* {{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 {{cd|broadcast_anger}} field is set to {{cd|true}} in the {{cd|minecraft:angry}} component in the entity [[Minecraft:JSON]] files, it makes the mob a pack mob.
| 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.
|-
|-
| {{EntityLink|Bee}}
| {{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.
|-
|-
| {{EntityLink|Hoglin}}
| {{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.
|-
|-
|{{EntityLink|Shulker}}
|{{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.
|-
|-
| {{EntityLink|Zoglin}}
| {{MC/Entitylink|Zoglin}}
| Adults only retaliate. Babies cannot.
| Adults only retaliate. Babies cannot.
|-
|-
| {{EntityLink|Polar Bear}}
| {{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.
|-
|-
| {{EntityLink|Wither}}
| {{MC/Entitylink|Wither}}
| Retaliates normally, but not against undead mobs.
| Retaliates normally, but not against undead mobs.
|-
|-
| {{EntityLink|Breeze}}{{only|be|short=true}}
| {{MC/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}}
| {{MC/Entitylink|Creeper}}
| Retaliates only if it is not already chasing the player.
| Retaliates only if it is not already chasing the player.
|-
|-
|  
|  
* {{EntityLink|Evoker}}
* {{MC/Entitylink|Evoker}}
* {{EntityLink|Pillager}}
* {{MC/Entitylink|Pillager}}
* {{EntityLink|Ravager}}
* {{MC/Entitylink|Ravager}}
* {{EntityLink|Vindicator}}
* {{MC/Entitylink|Vindicator}}


'''{{IN|java}} only:'''
'''{{MC/In|java}} only:'''
* {{EntityLink|Illusioner}}
* {{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. {{IN|Java}}, ravagers are also a pack mob and call other ravagers when attacked.
| 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.
|-
|-
| {{EntityLink|Llama}}, {{EntityLink|Trader Llama}}
| {{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.
|-
|-
| {{EntityLink|Panda}}
| {{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.
|-
|-
|
|
* {{EntityLink|Axolotl}}
* {{MC/Entitylink|Axolotl}}
* {{EntityLink|Cat}}
* {{MC/Entitylink|Cat}}
* {{EntityLink|Creaking}}
* {{MC/Entitylink|Creaking}}
* {{EntityLink|Elder Guardian}}
* {{MC/Entitylink|Elder Guardian}}
* {{EntityLink|Ender Dragon}}
* {{MC/Entitylink|Ender Dragon}}
* {{EntityLink|Frog}}
* {{MC/Entitylink|Frog}}
* {{EntityLink|Fox}}
* {{MC/Entitylink|Fox}}
* {{EntityLink|Giant}}
* {{MC/Entitylink|Giant}}
* {{EntityLink|Goat}}
* {{MC/Entitylink|Goat}}
* {{EntityLink|Guardian}}
* {{MC/Entitylink|Guardian}}
* {{EntityLink|Magma Cube}}
* {{MC/Entitylink|Magma Cube}}
* {{EntityLink|Ocelot}}
* {{MC/Entitylink|Ocelot}}
* {{EntityLink|Phantom}}
* {{MC/Entitylink|Phantom}}
* {{EntityLink|Slime}}
* {{MC/Entitylink|Slime}}
* {{EntityLink|Snow Golem}}
* {{MC/Entitylink|Snow Golem}}


'''{{IN|bedrock}} only:'''
'''{{MC/In|bedrock}} only:'''
* {{EntityLink|Endermite}}
* {{MC/Entitylink|Endermite}}


'''{{IN|java}} only:'''
'''{{MC/In|java}} only:'''
* {{EntityLink|Breeze}}
* {{MC/Entitylink|Breeze}}
* {{EntityLink|Ghast}}
* {{MC/Entitylink|Ghast}}
| Does not retaliate.
| Does not retaliate.
|}
|}


;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 146: Line 146:
! Prey
! Prey
|-
|-
| {{EntityLink|Axolotl}}
| {{MC/Entitylink|Axolotl}}
|  
|  
* {{EntityLink|Cod}}
* {{MC/Entitylink|Cod}}
* {{EntityLink|Drowned}}
* {{MC/Entitylink|Drowned}}
* {{EntityLink|Elder Guardian}}
* {{MC/Entitylink|Elder Guardian}}
* {{EntityLink|Glow Squid}}
* {{MC/Entitylink|Glow Squid}}
* {{EntityLink|Guardian}}
* {{MC/Entitylink|Guardian}}
* {{EntityLink|Pufferfish}}
* {{MC/Entitylink|Pufferfish}}
* {{EntityLink|Salmon}}
* {{MC/Entitylink|Salmon}}
* {{EntityLink|Squid}}
* {{MC/Entitylink|Squid}}
* {{EntityLink|Tadpole}}
* {{MC/Entitylink|Tadpole}}
* {{EntityLink|Tropical Fish}}
* {{MC/Entitylink|Tropical Fish}}
|-
|-
|
|
* {{EntityLink|Bogged}}
* {{MC/Entitylink|Bogged}}
* {{EntityLink|Parched}}
* {{MC/Entitylink|Parched}}
* {{EntityLink|Skeleton}}
* {{MC/Entitylink|Skeleton}}
* {{EntityLink|Stray}}
* {{MC/Entitylink|Stray}}
|
|
* {{EntityLink|Turtle|Baby Turtle}}
* {{MC/Entitylink|Turtle|Baby Turtle}}
* {{EntityLink|Iron Golem}}
* {{MC/Entitylink|Iron Golem}}
|-
|-
| {{EntityLink|Breeze}}
| {{MC/Entitylink|Breeze}}
| {{EntityLink|Iron Golem}}
| {{MC/Entitylink|Iron Golem}}
|-
|-
|
|
* {{EntityLink|Cave Spider}}
* {{MC/Entitylink|Cave Spider}}
* {{EntityLink|Spider}}
* {{MC/Entitylink|Spider}}
| {{EntityLink|Iron Golem}}
| {{MC/Entitylink|Iron Golem}}
|-
|-
| {{EntityLink|Cat}}
| {{MC/Entitylink|Cat}}
|
|
* {{EntityLink|Turtle|Baby Turtle}}
* {{MC/Entitylink|Turtle|Baby Turtle}}
* {{EntityLink|Rabbit}}
* {{MC/Entitylink|Rabbit}}
|-
|-
| {{EntityLink|Drowned}}
| {{MC/Entitylink|Drowned}}
|
|
* {{EntityLink|Axolotl}}
* {{MC/Entitylink|Axolotl}}
* {{EntityLink|Turtle|Baby Turtle}}
* {{MC/Entitylink|Turtle|Baby Turtle}}
* {{EntityLink|Iron Golem}}
* {{MC/Entitylink|Iron Golem}}
* {{EntityLink|Villager}}
* {{MC/Entitylink|Villager}}
* {{EntityLink|Wandering Trader}}
* {{MC/Entitylink|Wandering Trader}}


'''{{IN|bedrock}} only:'''
'''{{MC/In|bedrock}} only:'''
* {{EntityLink|Snow Golem}}
* {{MC/Entitylink|Snow Golem}}
|-
|-
|
|
* {{EntityLink|Elder Guardian}}
* {{MC/Entitylink|Elder Guardian}}
* {{EntityLink|Guardian}}
* {{MC/Entitylink|Guardian}}
|
|
* {{EntityLink|Axolotl}}
* {{MC/Entitylink|Axolotl}}
* {{EntityLink|Glow Squid}}
* {{MC/Entitylink|Glow Squid}}
* {{EntityLink|Squid}}
* {{MC/Entitylink|Squid}}
|-
|-
| {{EntityLink|Enderman}}
| {{MC/Entitylink|Enderman}}
| {{EntityLink|Endermite}}
| {{MC/Entitylink|Endermite}}
|-
|-
| {{EntityLink|Endermite}}
| {{MC/Entitylink|Endermite}}
| {{EntityLink|Enderman}}{{only|bedrock|short=1}}
| {{MC/Entitylink|Enderman}}{{only|bedrock|short=1}}
|-
|-
|
|
* {{EntityLink|Evoker}}
* {{MC/Entitylink|Evoker}}
* {{EntityLink|Vindicator}}
* {{MC/Entitylink|Vindicator}}


'''{{IN|java}} only:'''
'''{{MC/In|java}} only:'''
* {{EntityLink|Illusioner}}
* {{MC/Entitylink|Illusioner}}
|
|
* {{EntityLink|Iron Golem}}
* {{MC/Entitylink|Iron Golem}}
* {{EntityLink|Villager|Adult Villager}}
* {{MC/Entitylink|Villager|Adult Villager}}
* {{EntityLink|Wandering Trader}}
* {{MC/Entitylink|Wandering Trader}}


'''{{IN|bedrock}} only:'''
'''{{MC/In|bedrock}} only:'''
* {{EntityLink|Snow Golem}}
* {{MC/Entitylink|Snow Golem}}
|-
|-
| {{EntityLink|Frog}}
| {{MC/Entitylink|Frog}}
|
|
* {{EntityLink|Magma Cube|Small Magma Cube}}
* {{MC/Entitylink|Magma Cube|Small Magma Cube}}
* {{EntityLink|Slime|Small Slime}}
* {{MC/Entitylink|Slime|Small Slime}}
|-
|-
| {{EntityLink|Fox}}
| {{MC/Entitylink|Fox}}
|
|
* {{EntityLink|Turtle|Baby Turtle}}
* {{MC/Entitylink|Turtle|Baby Turtle}}
* {{EntityLink|Cod}}
* {{MC/Entitylink|Cod}}
* {{EntityLink|Chicken}}
* {{MC/Entitylink|Chicken}}
* {{EntityLink|Rabbit}}
* {{MC/Entitylink|Rabbit}}
* {{EntityLink|Salmon}}
* {{MC/Entitylink|Salmon}}
* {{EntityLink|Tropical Fish}}
* {{MC/Entitylink|Tropical Fish}}
|-
|-
| {{EntityLink|Goat}}
| {{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.
|-
|-
|
|
* {{EntityLink|Husk}}
* {{MC/Entitylink|Husk}}
* {{EntityLink|Zombie}}
* {{MC/Entitylink|Zombie}}
* {{EntityLink|Zombie Villager}}
* {{MC/Entitylink|Zombie Villager}}


'''{{IN|bedrock}} only:'''
'''{{MC/In|bedrock}} only:'''
* {{EntityLink|Old Zombie Villager}}
* {{MC/Entitylink|Old Zombie Villager}}
|
|
* {{EntityLink|Turtle|Baby Turtle}}
* {{MC/Entitylink|Turtle|Baby Turtle}}
* {{EntityLink|Iron Golem}}
* {{MC/Entitylink|Iron Golem}}
* {{EntityLink|Villager}}
* {{MC/Entitylink|Villager}}
* {{EntityLink|Wandering Trader}}
* {{MC/Entitylink|Wandering Trader}}


'''{{IN|bedrock}} only:'''
'''{{MC/In|bedrock}} only:'''
* {{EntityLink|Old Villager}}
* {{MC/Entitylink|Old Villager}}
* {{EntityLink|Snow Golem}}
* {{MC/Entitylink|Snow Golem}}
|-
|-
| {{EntityLink|Iron Golem}}
| {{MC/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}}
| {{MC/Entitylink|Killer Bunny}}{{only|java|short=1}}
| {{EntityLink|Wolf}}
| {{MC/Entitylink|Wolf}}
|-
|-
| {{EntityLink|Llama}}
| {{MC/Entitylink|Llama}}
| {{EntityLink|Wolf}}
| {{MC/Entitylink|Wolf}}
|-
|-
| {{EntityLink|Magma Cube}}
| {{MC/Entitylink|Magma Cube}}
| {{EntityLink|Iron Golem}}
| {{MC/Entitylink|Iron Golem}}
|-
|-
|
|
* {{EntityLink|Nautilus}}
* {{MC/Entitylink|Nautilus}}
* {{EntityLink|Zombie Nautilus}}
* {{MC/Entitylink|Zombie Nautilus}}
|
|
* {{EntityLink|Pufferfish}}
* {{MC/Entitylink|Pufferfish}}
|-
|-
| {{EntityLink|Ocelot}}
| {{MC/Entitylink|Ocelot}}
|
|
* {{EntityLink|Turtle|Baby Turtle}}
* {{MC/Entitylink|Turtle|Baby Turtle}}
* {{EntityLink|Chicken}}
* {{MC/Entitylink|Chicken}}
|-
|-
|
|
* {{EntityLink|Piglin}}
* {{MC/Entitylink|Piglin}}
* {{EntityLink|Piglin Brute}}
* {{MC/Entitylink|Piglin Brute}}
|
|
* {{EntityLink|Wither}}
* {{MC/Entitylink|Wither}}
* {{EntityLink|Wither Skeleton}}
* {{MC/Entitylink|Wither Skeleton}}
* {{EntityLink|Hoglin}} (ocassionally hunted)
* {{MC/Entitylink|Hoglin}} (ocassionally hunted)
* {{EntityLink|Iron Golem}}
* {{MC/Entitylink|Iron Golem}}
* {{EntityLink|Snow Golem}} (immediately if any of those golems attacks a piglin or a piglin brute)
* {{MC/Entitylink|Snow Golem}} (immediately if any of those golems attacks a piglin or a piglin brute)
|-
|-
|
|
* {{EntityLink|Pillager}}
* {{MC/Entitylink|Pillager}}
* {{EntityLink|Ravager}}
* {{MC/Entitylink|Ravager}}
* {{EntityLink|Vex}}
* {{MC/Entitylink|Vex}}
|
|
* {{EntityLink|Iron Golem}}
* {{MC/Entitylink|Iron Golem}}
* {{EntityLink|Villager|Adult Villager}}
* {{MC/Entitylink|Villager|Adult Villager}}
* {{EntityLink|Wandering Trader}}
* {{MC/Entitylink|Wandering Trader}}
|-
|-
| {{EntityLink|Polar Bear}}
| {{MC/Entitylink|Polar Bear}}
| {{EntityLink|Fox}}
| {{MC/Entitylink|Fox}}
|-
|-
| {{EntityLink|Silverfish}}
| {{MC/Entitylink|Silverfish}}
|  
|  
'''{{IN|bedrock}} only:'''
'''{{MC/In|bedrock}} only:'''
* {{EntityLink|Iron Golem}}
* {{MC/Entitylink|Iron Golem}}
* {{EntityLink|Snow Golem}}
* {{MC/Entitylink|Snow Golem}}
|-
|-
| {{EntityLink|Slime}}
| {{MC/Entitylink|Slime}}
|
|
* {{EntityLink|Iron Golem}}
* {{MC/Entitylink|Iron Golem}}
* {{EntityLink|Snow Golem}}{{only|bedrock|short=1}}
* {{MC/Entitylink|Snow Golem}}{{only|bedrock|short=1}}
|-
|-
| {{EntityLink|Snow Golem}}
| {{MC/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}}
| {{MC/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}}
| {{MC/Entitylink|Trader Llama}}
|
|
* {{EntityLink|Drowned}}
* {{MC/Entitylink|Drowned}}
* {{EntityLink|Evoker}}
* {{MC/Entitylink|Evoker}}
* {{EntityLink|Husk}}
* {{MC/Entitylink|Husk}}
* {{EntityLink|Pillager}}
* {{MC/Entitylink|Pillager}}
* {{EntityLink|Ravager}}
* {{MC/Entitylink|Ravager}}
* {{EntityLink|Vex}}
* {{MC/Entitylink|Vex}}
* {{EntityLink|Vindicator}}
* {{MC/Entitylink|Vindicator}}
* {{EntityLink|Wolf}}
* {{MC/Entitylink|Wolf}}
* {{EntityLink|Zombie}}
* {{MC/Entitylink|Zombie}}
* {{EntityLink|Zombie Villager}}
* {{MC/Entitylink|Zombie Villager}}
* Any mob that attacks its [[Minecraft:wandering trader]]
* Any mob that attacks its wandering trader


'''{{IN|java}} only:'''
'''{{MC/In|java}} only:'''
* {{EntityLink|Illusioner}}
* {{MC/Entitylink|Illusioner}}
|-
|-
| {{EntityLink|Fox|Trusting Fox}}
| {{MC/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:'''
* {{EntityLink|Turtle|Baby Turtle}}
* {{MC/Entitylink|Turtle|Baby Turtle}}
* {{EntityLink|Cod}}
* {{MC/Entitylink|Cod}}
* {{EntityLink|Chicken}}
* {{MC/Entitylink|Chicken}}
* {{EntityLink|Rabbit}}
* {{MC/Entitylink|Rabbit}}
* {{EntityLink|Salmon}}
* {{MC/Entitylink|Salmon}}
* {{EntityLink|Tropical Fish}}
* {{MC/Entitylink|Tropical Fish}}
|-
|-
|{{EntityLink|Vindicator}} named "Johnny"
|{{MC/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:'''
'''{{MC/In|bedrock|education}} only:'''
* {{EntityLink|Armor Stand}}
* {{MC/Entitylink|Armor Stand}}
* {{EntityLink|Camera}}
* {{MC/Entitylink|Camera}}
|-
|-
|{{EntityLink|Warden}}
|{{MC/Entitylink|Warden}}
| Every mob except other wardens.
| Every mob except other wardens.


'''{{IN|bedrock|education}} only:'''
'''{{MC/In|bedrock|education}} only:'''
* {{EntityLink|Camera}}
* {{MC/Entitylink|Camera}}
|-
|-
|{{EntityLink|Witch}}
|{{MC/Entitylink|Witch}}
|
|
'''{{IN|bedrock}} only:'''
'''{{MC/In|bedrock}} only:'''
* {{EntityLink|Iron Golem}}
* {{MC/Entitylink|Iron Golem}}
* {{EntityLink|Snow Golem}}
* {{MC/Entitylink|Snow Golem}}


'''Only as part of a patrol {{in|java}} only:'''
'''Only as part of a patrol {{MC/In|java}} only:'''
* {{EntityLink|Iron Golem}}
* {{MC/Entitylink|Iron Golem}}
|-
|-
|{{EntityLink|Wither}}
|{{MC/Entitylink|Wither}}
| Every mob except [[Minecraft:undead]] mobs, ghasts, and agents.
| Every mob except [[Minecraft:undead]] mobs, ghasts, and agents.


'''{{IN|bedrock|education}} only:'''
'''{{MC/In|bedrock|education}} only:'''
* {{EntityLink|Camera}}
* {{MC/Entitylink|Camera}}
|-
|-
|{{EntityLink|Wither Skeleton}}
|{{MC/Entitylink|Wither Skeleton}}
|
|
* {{EntityLink|Iron Golem}}
* {{MC/Entitylink|Iron Golem}}
* {{EntityLink|Turtle|Baby Turtle}}
* {{MC/Entitylink|Turtle|Baby Turtle}}
* {{EntityLink|Piglin}}
* {{MC/Entitylink|Piglin}}
* {{EntityLink|Piglin Brute}}
* {{MC/Entitylink|Piglin Brute}}


|-
|-
|{{EntityLink|Wolf}}
|{{MC/Entitylink|Wolf}}
|
|
* {{EntityLink|Turtle|Baby Turtle}}
* {{MC/Entitylink|Turtle|Baby Turtle}}
* {{EntityLink|Bogged}}
* {{MC/Entitylink|Bogged}}
* {{EntityLink|Fox}}
* {{MC/Entitylink|Fox}}
* {{EntityLink|Parched}}
* {{MC/Entitylink|Parched}}
* {{EntityLink|Rabbit}}
* {{MC/Entitylink|Rabbit}}
* {{EntityLink|Sheep}}
* {{MC/Entitylink|Sheep}}
* {{EntityLink|Skeleton}}
* {{MC/Entitylink|Skeleton}}
* {{EntityLink|Stray}}
* {{MC/Entitylink|Stray}}
* {{EntityLink|Wither}}
* {{MC/Entitylink|Wither}}
* {{EntityLink|Wither Skeleton}}
* {{MC/Entitylink|Wither Skeleton}}


|-
|-
|{{EntityLink|Zoglin}}
|{{MC/Entitylink|Zoglin}}
| Every mob except creepers, ghasts, agents and other zoglins.
| Every mob except creepers, ghasts, agents and other zoglins.


'''{{IN|bedrock|education}} only:'''
'''{{MC/In|bedrock|education}} only:'''
* {{EntityLink|Armor Stand}}
* {{MC/Entitylink|Armor Stand}}
* {{EntityLink|Camera}}
* {{MC/Entitylink|Camera}}
|}
|}


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


== References ==
== References ==
{{reflist}}
{{MC/Reflist}}


== Navigation ==
== Navigation ==
{{Navbox combat|general}}
{{MC/Navbox combat|general}}
{{Navbox gameplay}}
{{MC/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 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

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

  1. REDIRECT Template:Code

Template:Redr in the entity Minecraft:JSON files.

Mob Behavior
  1. REDIRECT Template:EntityLink
  1. REDIRECT Template:EntityLink
  1. REDIRECT Template:EntityLink
  1. REDIRECT Template:EntityLink
  1. REDIRECT Template:EntityLink
  1. REDIRECT Template:EntityLink
  1. REDIRECT Template:EntityLink
  1. REDIRECT Template:EntityLink
  1. REDIRECT Template:EntityLink
  1. REDIRECT Template:EntityLink
  1. REDIRECT Template:EntityLink
  1. REDIRECT Template:EntityLink
  1. REDIRECT Template:EntityLink

in Template:Editions only:

  1. REDIRECT Template:EntityLink
  1. REDIRECT Template:EntityLink
  1. REDIRECT Template:EntityLink
  1. REDIRECT Template:EntityLink
  1. REDIRECT Template:EntityLink
  1. REDIRECT Template:EntityLink
  1. REDIRECT Template:EntityLink

in Template:Editions only:

  1. REDIRECT Template:EntityLink
Retaliates normally, as described above.
  1. REDIRECT Template:EntityLink
  1. REDIRECT Template:EntityLink
  1. REDIRECT Template:EntityLink
  1. REDIRECT Template:EntityLink
  1. REDIRECT Template:EntityLink
  1. REDIRECT Template:EntityLink
  1. REDIRECT Template:EntityLink

in Template:Editions only:

  1. REDIRECT Template:EntityLink
  1. REDIRECT Template:EntityLink
  1. REDIRECT Template:EntityLink
  1. REDIRECT Template:EntityLink
  1. REDIRECT Template:EntityLink
  1. REDIRECT Template:EntityLink
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
  1. REDIRECT Template:Code

Template:Redr field is set to

  1. REDIRECT Template:Code

Template:Redr in the

  1. REDIRECT Template:Code

Template:Redr component in the entity Minecraft:JSON files, it makes the mob a pack mob.

  1. REDIRECT Template:EntityLink
Bees are a pack mob (see above) but they attack back only once until they are made angry again.
  1. REDIRECT Template:EntityLink
Hoglins are a pack mob (see above) but only adults can alert others, when attacked. Babies cannot.
  1. REDIRECT Template:EntityLink


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

in Template:Editions only:

  1. REDIRECT Template:EntityLink
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.
  1. REDIRECT Template:EntityLink,
  2. REDIRECT 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.
  1. REDIRECT Template:EntityLink
Aggressive pandas only retaliate. All other types try to attack back only once.
  1. REDIRECT Template:EntityLink
  1. REDIRECT Template:EntityLink
  1. REDIRECT Template:EntityLink
  1. REDIRECT Template:EntityLink
  1. REDIRECT Template:EntityLink
  1. REDIRECT Template:EntityLink
  1. REDIRECT Template:EntityLink
  1. REDIRECT Template:EntityLink
  1. REDIRECT Template:EntityLink
  1. REDIRECT Template:EntityLink
  1. REDIRECT Template:EntityLink
  1. REDIRECT Template:EntityLink
  1. REDIRECT Template:EntityLink
  1. REDIRECT Template:EntityLink
  1. REDIRECT Template:EntityLink

in Template:Editions only:

  1. REDIRECT Template:EntityLink

in Template:Editions only:

  1. REDIRECT Template:EntityLink
  1. REDIRECT Template:EntityLink
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
  1. REDIRECT Template:EntityLink
  1. REDIRECT Template:EntityLink
  1. REDIRECT Template:EntityLink
  1. REDIRECT Template:EntityLink
  1. REDIRECT Template:EntityLink
  1. REDIRECT Template:EntityLink
  1. REDIRECT Template:EntityLink
  1. REDIRECT Template:EntityLink
  1. REDIRECT Template:EntityLink
  1. REDIRECT Template:EntityLink
  1. REDIRECT Template:EntityLink
  1. REDIRECT Template:EntityLink
  1. REDIRECT Template:EntityLink
  1. REDIRECT Template:EntityLink
  1. REDIRECT Template:EntityLink
  1. REDIRECT Template:EntityLink
  1. REDIRECT Template:EntityLink
  1. REDIRECT Template:EntityLink
  1. REDIRECT Template:EntityLink
  1. REDIRECT Template:EntityLink
  1. REDIRECT Template:EntityLink
  1. REDIRECT Template:EntityLink
  1. REDIRECT Template:EntityLink
  1. REDIRECT Template:EntityLink
  1. REDIRECT Template:EntityLink
  1. REDIRECT Template:EntityLink
  1. REDIRECT Template:EntityLink
  1. REDIRECT Template:EntityLink
  1. REDIRECT Template:EntityLink
  1. REDIRECT Template:EntityLink
  1. REDIRECT Template:EntityLink

in Template:Editions only:

  1. REDIRECT Template:EntityLink
  1. REDIRECT Template:EntityLink
  1. REDIRECT Template:EntityLink
  1. REDIRECT Template:EntityLink
  1. REDIRECT Template:EntityLink
  1. REDIRECT Template:EntityLink
  1. REDIRECT Template:EntityLink
  1. REDIRECT Template:EntityLink
  1. REDIRECT Template:EntityLink
  1. REDIRECT Template:EntityLinkTemplate:Only
  1. REDIRECT Template:EntityLink
  1. REDIRECT Template:EntityLink

in Template:Editions only:

  1. REDIRECT Template:EntityLink
  1. REDIRECT Template:EntityLink
  1. REDIRECT Template:EntityLink
  1. REDIRECT Template:EntityLink

in Template:Editions only:

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

in Template:Editions only:

  1. REDIRECT Template:EntityLink
  1. REDIRECT Template:EntityLink
  1. REDIRECT Template:EntityLink
  1. REDIRECT Template:EntityLink
  1. REDIRECT Template:EntityLink

in Template:Editions only:

  1. REDIRECT Template:EntityLink
  1. REDIRECT Template:EntityLink
  1. REDIRECT Template:EntityLink
Every Minecraft:monster except for the creeper.
  1. REDIRECT Template:EntityLinkTemplate:Only
  1. REDIRECT Template:EntityLink
  1. REDIRECT Template:EntityLink
  1. REDIRECT Template:EntityLink
  1. REDIRECT Template:EntityLink
  1. REDIRECT Template:EntityLink
  1. REDIRECT Template:EntityLink
  1. REDIRECT Template:EntityLink
  1. REDIRECT Template:EntityLink
  1. REDIRECT Template:EntityLink
  1. REDIRECT Template:EntityLink
  1. REDIRECT Template:EntityLink
  1. REDIRECT Template:EntityLink
  1. REDIRECT Template:EntityLink
  1. REDIRECT Template:EntityLink
  1. REDIRECT Template:EntityLink
  1. REDIRECT Template:EntityLink (ocassionally hunted)
  1. REDIRECT Template:EntityLink
  1. REDIRECT Template:EntityLink (immediately if any of those golems attacks a piglin or a piglin brute)
  1. REDIRECT Template:EntityLink
  1. REDIRECT Template:EntityLink
  1. REDIRECT Template:EntityLink
  1. REDIRECT Template:EntityLink
  1. REDIRECT Template:EntityLink
  1. REDIRECT Template:EntityLink
  1. REDIRECT Template:EntityLink
  1. REDIRECT Template:EntityLink
  1. REDIRECT Template:EntityLink

in Template:Editions only:

  1. REDIRECT Template:EntityLink
  1. REDIRECT Template:EntityLink
  1. REDIRECT Template:EntityLink
  1. REDIRECT Template:EntityLink
  1. REDIRECT Template:EntityLinkTemplate:Only
  1. REDIRECT Template:EntityLink
Every Minecraft:monster except for the ghast and hoglinTemplate:Only
  1. REDIRECT Template:EntityLink
Every mob that the owner attacks except for creepers, ghasts and other tamed wolves.
  1. REDIRECT Template:EntityLink
  1. REDIRECT Template:EntityLink
  1. REDIRECT Template:EntityLink
  1. REDIRECT Template:EntityLink
  1. REDIRECT Template:EntityLink
  1. REDIRECT Template:EntityLink
  1. REDIRECT Template:EntityLink
  1. REDIRECT Template:EntityLink
  1. REDIRECT Template:EntityLink
  1. REDIRECT Template:EntityLink
  1. REDIRECT Template:EntityLink
  • Any mob that attacks its wandering trader

in Template:Editions only:

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

Natural enemies:

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

in Template:Editions only:

  1. REDIRECT Template:EntityLink
  1. REDIRECT Template:EntityLink
  1. REDIRECT Template:EntityLink
Every mob except other wardens.

in Template:Editions only:

  1. REDIRECT Template:EntityLink
  1. REDIRECT Template:EntityLink

in Template:Editions only:

  1. REDIRECT Template:EntityLink
  1. REDIRECT Template:EntityLink

Only as part of a patrol in Template:Editions only:

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

in Template:Editions only:

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

in Template:Editions only:

  1. REDIRECT Template:EntityLink
  1. REDIRECT Template:EntityLink

See also

References

<references group="">

 </references>

Navigation

Mechanics
Items
Sword
Axe
Spear
Enchantments
Sword
Axe
Spear
Trident
Mace
Effects
Mechanics
Items
Helmet
Chestplate
Leggings
Boots
Horse armor
Nautilus armor
Enchantments
Helmet
Leggings
Boots
Mechanics
Items
Natural
Meat
Fish
Crafted
Effects
Mechanics
Removed
Items
Enchantments
Effects
General mechanics
Technical mechanics
Survival
Combat

More

Environment

More

Movement
User interface
Visuals
Removed
Unintended

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