Make another mob mimic a wolf?

Discussion in 'Plugin Development' started by AstramG, May 6, 2014.

Thread Status:
Not open for further replies.
  1. Offline

    AstramG

    Hello, I've been reading up on how to make custom entities lately and I'm stuck on this issue. I have a custom zombie entity, yet I can't make a pathfinder got the zombie to follow the owner (like a wolf), because I can't set the owner of the zombie obviously. Anyways, does anybody out there know how to accomplish something like this?
     
  2. Offline

    AoH_Ruthless

    AstramG
    You could have the zombie target the player and cancel any damage event (doesn't require NMS, but you will still see the zombie attempting to attack the player). If the player gets out of range of the zombie, have the zombie teleport to the player's location.
     
  3. Offline

    AstramG

    I was thinking about doing this, but it's just not the same honestly. Also, do you think you know how to edit the hostility of any mob? I've tried using sheep to attack other mobs. They detect the target and walk to them, however they can't attack because their GenericAttributes.e is set to 0 (damage attribute), and when you try to set it, it gives you a nullpointer on the entities spawn.
     
Thread Status:
Not open for further replies.

Share This Page