[Question] Move an zombie to a location

Discussion in 'Plugin Development' started by FunnyItsElmo, May 19, 2013.

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


    Is it possible to move an zombie to a location? I tried it with codes i found in forums and i tried it with the API remoteentities and everything does not work! Please can someone help me. I'm really desperate on.

  2. Offline


    You need to use entity navigation to accomplish this. A Google search should point you in the right direction. :)
  3. Offline


    AngryNerd You mean something like that right?
    public void moveTo(LivingEntity entity, Location moveTo, float speed)
            EntityLiving nmsEntity = ((CraftLivingEntity) entity).getHandle();
            // Create a path to the location
            PathEntity path = nmsEntity.getNavigation().a(moveTo.getX(), moveTo.getY(), moveTo.getZ());
            // Move to that path at 'speed' speed.
            nmsEntity.getNavigation().a(path, speed);
    But that does not work for me somehow. :( The zombie does not run to the location.
  4. Offline


    I've never used anything like this before, so I can't really help you past telling you what to use, but maybe someone else will come along shortly.
  5. Offline


  6. Offline


    one. ur not spawning the entity to control. Two. if u want a ZOMBIE to kove then u need a api or lib. you can usw pigman with this code though
Thread Status:
Not open for further replies.

Share This Page