mrkirby153

Untitled

Mar 26th, 2015
318
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Java 0.60 KB | None | 0 0
  1.  public void doPoof(EntityPlayer player){
  2.         // Summon a poof
  3.         PoofEntity entity = new PoofEntity(player.worldObj);
  4.         entity.posX = player.posX;
  5.         entity.posY = player.posY;
  6.         entity.posZ = player.posZ;
  7.         player.worldObj.spawnEntityInWorld(entity);
  8.  
  9.         // Summon EXPLOSION
  10.         player.playSound("random.explode", 1F, 1F);
  11.         Random r = player.worldObj.rand;
  12.         player.worldObj.spawnParticle("snowshovel", player.posX, player.posY, player.posZ, r.nextDouble(), r.nextDouble(), r.nextDouble());
  13.         player.playSound("KCNerfer:poof", 1F, 1F);
  14.     }
Advertisement
Add Comment
Please, Sign In to add comment