Shoot arrow NMS mob

Discussion in 'Plugin Development' started by Plugers11, Jul 29, 2014.

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

    Plugers11

    Hi
    It's possible to shoot arrow [NMS] if mob is maybe Zombie and if distance to other entity is >3D ?
     
  2. Offline

    GameplayJDK

    Plugers11 You should be able to get the distance with Location1.squareDistance(Location2),
    And this thread looks like if it is about aiming..
     
  3. Offline

    Plugers11

    GameplayJDK
    Ok i have

    Code:
    this.goalSelector.a(6, new PathfinderGoalArrowAttack(this, 100.0D, 1000, 100));
    But how change that to faster shooting ?
     
  4. Offline

    GameplayJDK

    Plugers11 If it's possible to change the shooting speed, and assuming the minimum 'cooldown' could be set in milliseconds, it might be the 1000.. If that doesn't work your way would be to try changing the arguments one by one to find out which one is setting the time..
     
Thread Status:
Not open for further replies.

Share This Page