Evoker Fangs

Discussion in 'Plugin Development' started by SteveStage, Apr 24, 2021.

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

    SteveStage

    How can I summon Evoker Fangs like does it Evoker, not one fang (line trajectory).
    My current code:

    PHP:
    EvokerFangs ef = (EvokerFangs)this.damager.getWorld().spawnEntity(this.damager.getLocation(), EntityType.EVOKER_FANGS);
    ef.setOwner(this.damager);
    ef.setVelocity(this.damager.getEyeLocation().getDirection());
    P.S. this.damager is player who call fangs
     
  2. Offline

    Strahan

    Loop the amount you want, and in the loop spawn them and call add on a clone of the damager location and multiple it by the loop's current value.
     
Thread Status:
Not open for further replies.

Share This Page