2

Make mobs run away from players

hogbits's Avatar hogbits10/6/21 7:12 pm
2 emeralds 1.4k 6
10/8/2021 10:47 pm
HoboMaggot's Avatar HoboMaggot
is it possible to make hostile mobs run away from players? I don't mean ignore, but actually run away with a speed boost :D. I was hoping to use something like this in a mini game, but I am not sure it's even possible.
Posted by hogbits's Avatar
hogbits
Level 34 : Artisan Pig
20

Create an account or sign in to comment.

6

hogbits
10/08/2021 6:36 pm
Level 34 : Artisan Pig
hogbits's Avatar
Thanks for the comments everyone. You have given me some ideas that may work. For example if I want to use zombies, I can summon an invisible villager and randomize it's teleported location and keep moving the villager before the zombie can get close enough to attack. and I believe I can do the same with skeletons and wolves.

I was really hoping that you all would tell me that there was an NBT tag that could be added to mobs and/or players to make mobs run away. (wishful thinking)
1
HoboMaggot
10/08/2021 10:47 pm
Level 52 : Grandmaster Blob
HoboMaggot's Avatar
Cant you just use Bittu's and my idea of tping the mob to an invisible cat?
1
Bittu5134
10/08/2021 6:21 am
Level 82 : Elite Programmer
Bittu5134's Avatar
When a player get near a hostile mob just summon an untamed cat at that man and link the mob with the cat and ultimately the mob will run away from player
2
TealSucksAtProgramming
10/06/2021 8:25 pm
Level 25 : Expert Procrastinator
TealSucksAtProgramming's Avatar
Creepers: summon an invisible cat

zombies: wait for the warden to get added since they're afraid of the warden
2
HoboMaggot
10/06/2021 8:37 pm
Level 52 : Grandmaster Blob
HoboMaggot's Avatar
Creepers will run away in random directions, not away from the player
2
HoboMaggot
10/06/2021 7:13 pm
Level 52 : Grandmaster Blob
HoboMaggot's Avatar
when a player is nearby summon an invisible cat/ocelot on the hostile mob and tp the mob to that cat
2
Planet Minecraft

Website

© 2010 - 2024
www.planetminecraft.com

Welcome