Solved Launch Players: OK, Lauch Mobs: ???

Discussion in 'Plugin Development' started by Goty_Metal, Feb 24, 2013.

Thread Status:
Not open for further replies.
  1. Hi there! i'm working with a little code to launch entities upwards, works perfect for players but mobs just keep static:

    PHP:
    double speed 10.00;
    Vector v player.getVelocity().setY(speed);
    player.setVelocity(v);
    This works great but if i try to do it with a mob the mob doesn't even moves, any idea ? thanks!
     
  2. Offline

    Rprrr

    Show the code you use for the mobs.
     
  3. Same:

    PHP:
    double speed 10.00;
    Vector v e.getEntity().getVelocity().setY(speed);
    e.getEntity().setVelocity(v);
     
  4. Offline

    Rprrr

    More code pl0x.
    Are you sure these lines are reached? Does it get past all 'if' / 'else' statements? Add debug-messages? What are av and nv?
     
  5. Man i have tons of plugins i know java don't need all my code to know that it's well done, if works for players why don't work to mobs? no errors, just not working for mobs by some reason :/
     
  6. Offline

    Burnett1

    Your the one who asked for help, so if you don't help us understand it. Then don't ask for help.
     
  7. This is the relevant part, don't need more, don't need to know neither the event or the full code cause it's irrelevant, this is the part which is not working :/
     
  8. Offline

    Burnett1

    Leave it then.
     
  9. Offline

    gamerzap

    Actually, we do need to know more. We have no idea what av and nv are, so there is no way we can help you. For all we know you could just be setting the entities velocity to itself.
     
  10. Was a conflict with essentials, don't worry it's fixed and thanks to all :)
     
Thread Status:
Not open for further replies.

Share This Page