How to make a mob attack a mob [duplicate]
![How to make a mob attack a mob [duplicate] - Person Writing While Using Phone How to make a mob attack a mob [duplicate] - Person Writing While Using Phone](/assets/images/how_to_make_a_mob_attack_a_mob_duplicate_0.jpeg)
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] - A Gang of Meerkat on the Ground](/assets/images/how_to_make_a_mob_attack_a_mob_duplicate_1.jpeg)
![How to make a mob attack a mob [duplicate] - Wood figurines set on surface How to make a mob attack a mob [duplicate] - Wood figurines set on surface](/assets/images/how_to_make_a_mob_attack_a_mob_duplicate_2.png)
![How to make a mob attack a mob [duplicate] - Man in Black Blazer and Sunglasses holding Paper Bills How to make a mob attack a mob [duplicate] - Man in Black Blazer and Sunglasses holding Paper Bills](/assets/images/how_to_make_a_mob_attack_a_mob_duplicate_3.jpeg)
How do you make a mob attack another mob?
Minecraft: 15 Strongest Enemy Mobs, RankedHow do you repeat a mob with command blocks?
Without further ado, here are the top ten rarest mobs in Minecraft.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