1.12.2 how do i projectile Yaw;

Discussion in 'Spigot Plugin Development' started by FlameFOxYT, Feb 15, 2020.

  1. Arrow arrow = p.launchProjectile(Arrow.class, p.getLocation().getDirection());
    i was wondering how do i change the yaw of the arrow.
     
  2. Do i use this?

    Location loc = p.getLocation();
    loc.setYaw(10f);
    Arrow arrow0 = p.launchProjectile(Arrow.class, loc.getDirection());