*Help* Setting target of peaceful mobs

Discussion in 'Plugin Development' started by SuperOriginal, Feb 17, 2014.

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

    SuperOriginal

    So I want to make a plugin that causes any peaceful mob to chase you when you hit it basically like a hostile mob but dealing no damage. Can anybody help me on setting this up?
    Thanks!
     
  2. Offline

    xTrollxDudex

  3. Offline

    Ch4t4r

    This is only a workaround, but use the Navigation of EntityInsentient (or something like that) most Entitys implement that and you cast like this: EntityInsentient ent= (EntityInsentient)((CraftEntity) entity).getHandle ());
    Its moveable with ent.getNavigation().a (true); ent.getNavigation ().a (x, y, z, speed);
     
Thread Status:
Not open for further replies.

Share This Page