Adjusted Cannon Bow for slower arc

This commit is contained in:
alisolarflare 2016-11-26 18:24:55 -05:00
parent e5e5ece83a
commit bdc467db30

View file

@ -43,9 +43,9 @@ public class CannonBowListener implements Listener {
return;
TNTPrimed tnt = (TNTPrimed) arrow.getWorld().spawnEntity(arrow.getLocation(), EntityType.PRIMED_TNT);
tnt.setVelocity(player.getEyeLocation().getDirection().normalize().multiply(2.0));
tnt.setVelocity(player.getEyeLocation().getDirection().normalize().multiply(1.0));
tnt.setCustomName("CANNON BOW TNT");
tnt.setFuseTicks(20);
tnt.setFuseTicks(40);
player.setVelocity(player.getEyeLocation().getDirection().normalize().multiply(-1));
player.getWorld().playSound(player.getLocation(), Sound.ENTITY_GENERIC_EXPLODE, 2.0F, 0);