Problem with RemoteEntities

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

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

    FunnyItsElmo

    Hey,
    kumpelblase2 I wanted to make zombies run to a location but it does not work!
    Here is my code:
    PHP:
    RemoteZombie entity = (RemoteZombiemain.getEntityManager().createEntity(RemoteEntityType.Zombie, new Location(worldxyz));
    Mind mind entity.getMind();
    mind.addMovementDesire(new DesireSwim(entity), 1);
    mind.addMovementDesire(new DesireAttackOnCollide(entityEntityHuman.class, false), 2);
    mind.addMovementDesire(new DesireMoveTowardsRestriction(entity), 3);
    mind.addMovementDesire(new DesireMoveThroughVillage(entityfalse), 4);
    mind.addMovementDesire(new DesireWanderAround(entity), 5);
    mind.addMovementDesire(new DesireMoveToLocation(entity, new Location(worldx+100yz)), 6);
    mind.addMovementDesire(new DesireLookRandomly(entity), 7);
    mind.addMovementDesire(new DesireLookAtNearest(entityEntityHuman.class, 8.0F), 8);
    mind.addTargetingDesire(new DesireFindAttackingTarget(entity8.0Ffalsefalse), 9);
    mind.addTargetingDesire(new DesireFindNearestTarget(entityEntityHuman.class, 8.0Ffalsetrue0), 10);
    Please can someone help me!
    Thanks :)
     
  2. Offline

    FunnyItsElmo

Thread Status:
Not open for further replies.

Share This Page