I'm trying to shoot a fireball from an armor stand towards a player, this is what I have so far. Code (Java): Fireball fire = armor.launchProjectile(Fireball.class); Vector to = armor.getLocation().getDirection().normalize().multiply(2); Vector from = e.getLocation().getDirection().normalize().multiply(2); Vector loc = to.subtract(from); fire.setVelocity(loc);
Code (Text): Vector loc = armor.getLocation().toVector().subtract(e.getLocation().toVector()); fire.setVelocity(loc);
Yes, I've tried many ways but I can not get it, although I'm also on how to fire a ball of fire towards where you are seeing an armorstand, do you know how to do this?