Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- public void doPoof(EntityPlayer player){
- // Summon a poof
- PoofEntity entity = new PoofEntity(player.worldObj);
- entity.posX = player.posX;
- entity.posY = player.posY;
- entity.posZ = player.posZ;
- player.worldObj.spawnEntityInWorld(entity);
- // Summon EXPLOSION
- player.playSound("random.explode", 1F, 1F);
- Random r = player.worldObj.rand;
- player.worldObj.spawnParticle("snowshovel", player.posX, player.posY, player.posZ, r.nextDouble(), r.nextDouble(), r.nextDouble());
- player.playSound("KCNerfer:poof", 1F, 1F);
- }
Advertisement
Add Comment
Please, Sign In to add comment