How to make a mob attack other mobs nearby?

  • Welcome to skUnity!

    Welcome to skUnity! This is a forum where members of the Skript community can communicate and interact. Skript Resource Creators can post their Resources for all to see and use.

    If you haven't done so already, feel free to join our official Discord server to expand your level of interaction with the community!

    Now, what are you waiting for? Join the community now!

  • LOOKING FOR A VERSION OF SKRIPT?

    You can always check out skUnity Downloads for downloads and any other information about Skript!

Status
Not open for further replies.

pepper82

Member
Jan 26, 2017
272
1
18
hi there,
I want to spawn a zombie and make it attack any other hostile mob nearby (e.g. skeleton, creeper or whatever is close to the zombie). How would I do that?
 
Thanks, I tried it but without much success:

code_language.skript:
                                spawn a stray at location above {_loc}
                                add pathfinder goal target nearest zombie to last spawned entity

The stray sometimes attacks players nearby ignoring any zombies.
The stray does only attack existing zombies and ignores freshly spawned zombies.
They stray sometimes does not even attack anything at all.
 
Status
Not open for further replies.