Projectile descend

Discussion in 'Plugin Development' started by DeamonZ, Jan 18, 2014.

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

    DeamonZ

    Hey,

    You know arrows right? They descend after a few blocks and hit the ground.
    Fireballs instead keep going on until they hit something. Is it possible to do the same with arrows, snowballs etc.
    I want to make a kind of special bow where I can shoot arrows straight without them dropping down.

    Regards,
    DeamonZ
     
  2. Offline

    Quackster

    This should make the arrow very precise when shooting it.

    Code:
    @EventHandler
    public void onEntityShootBowEvent(EntityShootBowEvent event) {
     
    event.getProjectile().setVelocity(event.getProjectile().getVelocity().multiply(3));
     
    }
     
Thread Status:
Not open for further replies.

Share This Page