Advertisement
iSach

Untitled

Aug 4th, 2015
313
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.58 KB | None | 0 0
  1. final Chicken c = (Chicken) getOwnerPlayer().getWorld().spawnEntity(getOwnerPlayer().getEyeLocation(), EntityType.CHICKEN);
  2. c.setNoDamageTicks(500);
  3. c.setVelocity(getOwnerPlayer().getLocation().getDirection().multiply(1.57));
  4. getOwnerPlayer().playSound(getOwnerPlayer().getLocation(), Sound.EXPLODE, 1, 1.5f);
  5. Bukkit.getScheduler().runTaskLater(Core.getPlugin(), new Runnable() {
  6. @Override
  7. public void run() {
  8. spawnRandomFirework(c.getLocation());
  9. c.remove();
  10. }
  11. }, 13);
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement