Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- final Chicken c = (Chicken) getOwnerPlayer().getWorld().spawnEntity(getOwnerPlayer().getEyeLocation(), EntityType.CHICKEN);
- c.setNoDamageTicks(500);
- c.setVelocity(getOwnerPlayer().getLocation().getDirection().multiply(1.57));
- getOwnerPlayer().playSound(getOwnerPlayer().getLocation(), Sound.EXPLODE, 1, 1.5f);
- Bukkit.getScheduler().runTaskLater(Core.getPlugin(), new Runnable() {
- @Override
- public void run() {
- spawnRandomFirework(c.getLocation());
- c.remove();
- }
- }, 13);
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement