I can't configure no explosion out with WitherSkull. Because it not setyeild Code:java @EventHandler public void onShoot(EntityShootBowEvent e) { if (e.getEntity() instanceof Player) { Player p = (Player) e.getEntity(); if(Util.WitherKit.contains(p.getName())) { e.setCancelled(true); Entity Launch =p.launchProjectile(WitherSkull.class); Launch.setVelocity(e.getProjectile().getVelocity().multiply(0.4)); } } }
Entity is a base. You cannot configure explosions out because not all entitys can explode. What you can do is something like this... Code:java WitherSkull skull = player.getWorld().spawn(event.getProjectile().getLocation().add(0, 1, 0), WitherSkull.class);skull.setIsIncendiary(false);skull.setVelocity(event.getProjectile().getVelocity().multiply(0.4)); event.setProjectile(skull);