How to make a mob attack a mob [duplicate]

How to make a mob attack a mob [duplicate] - Person Writing While Using Phone

I want hostile mobs to attack each other using commands. I know something like entity.setTarget will work, but I don't know where to put it (Where in the summon command).



Best Answer

First, summon the target mob with determined a UUIDLeast and UUIDMost. For example:

/summon Wolf ~ ~ ~ {UUIDLeast:0L,UUIDMost:0L}

Then, simulate the target mob hitting the attacker mob with a snowball to make the attacker angry, like this:

/execute @e[type=Creeper] ~ ~ ~ /summon Snowball ~ ~2.8 ~ {ownerName:"0-0-0-0-0"}

(OwnerName needs to be the UUID of the entity summoned in the first stage.)




Pictures about "How to make a mob attack a mob [duplicate]"

How to make a mob attack a mob [duplicate] - A Gang of Meerkat on the Ground
How to make a mob attack a mob [duplicate] - Wood figurines set on surface
How to make a mob attack a mob [duplicate] - Man in Black Blazer and Sunglasses holding Paper Bills



How do you make a mob attack another mob?

Minecraft: 15 Strongest Enemy Mobs, Ranked
  • 1 The Warden - A Near-Invincible Guardian Of The Depths.
  • 2 The Wither - A Player-Created Destroyer Of Worlds. ...
  • 3 The Ender Dragon - Legendary For A Reason. ...
  • 4 Charged Creepers - Dynamite On Legs. ...
  • 5 Elder Guardians - Terrifying Sea Monsters With A Knack For Drowning Players. ...


  • How do you repeat a mob with command blocks?

    Without further ado, here are the top ten rarest mobs in Minecraft.
  • 1 The Brown Mooshroom - An Almost Mythical Variant.
  • 2 The Charged Creeper - An Infamous Walking Bomb. ...
  • 3 The Skeleton Horse - A Once-In-A-Blue-Moon Undead Steed. ...
  • 4 The Mooshroom - An Iconic Cute Cow. ...
  • 5 The Panda - A Bamboo-Munching Gentle Giant. ...




  • Make mobs fight each other in Minecraft with commands




    More answers regarding how to make a mob attack a mob [duplicate]

    Answer 2

    the way i would do it would be i would make a villager on team 1 and another on team 2. then make 2 zombies and one on team 1 and another on team 2. then i would set friendly fire off for both the teams. now make the villagers invisible. then if they get close enought they will attack each other. this wont make them kill each other. but they attack each other. then to make them kill each other you could make it detect if the villager died, and if it did its team mate would be killed. im sorry but i cant simplify my explanations that well. i always make my things too complicated

    Sources: Stack Exchange - This article follows the attribution requirements of Stack Exchange and is licensed under CC BY-SA 3.0.

    Images: Pew Nguyen, Anna Tarazevich, Susanne Jutzeler, suju-foto, Alari Tammsalu