Triple shot help

Discussion in 'Plugin Development' started by ThatGuyWhoDied13, Oct 24, 2013.

Thread Status:
Not open for further replies.
  1. Hey, I was wondering how to make a bow shoot 3 arrows at once or throw 3 snowballs at once like the triple shot perk in hypixel's paintball minigame. If you know how to do this can you please post some code below, thanks :)
     
  2. Offline

    tommycake50

    Player.launchProjectile(Arrow.class);
    or spawn an arrow at the players head and set its velocity.
     
  3. Offline

    NathanWolf

    If you want you could check out the code I have that does this, it also randomly spaces the arrows out a bit so it's more of a "volley":

    ArrowSpell.java

    Another thing this does that you'll want to consider doing is setting the arrows so they can't be picked back up.
     
  4. Offline

    chasertw123

    I hate to bring this topic back from the dead but the ArrowSpell.java link is broken and really want to know how to do this!
     
  5. Offline

    97WaterPolo

    chasertw123
    EntityShootBowEvent
    If the entity is a player
    Player p = (Player) e.getEntity();
    p.shootArrow();

    You can do a loop for each more arrow you want to add.

    In the future, just make your own post :p
     
  6. Offline

    chasertw123

    97WaterPolo
    Not I don't want to shoot three different arrows. I want them to shoot 3 different directions like on hypixel's tnt spleef.
     
  7. Offline

    Garris0n

Thread Status:
Not open for further replies.

Share This Page