LapisSea

Untitled

Aug 21st, 2016
722
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Java 0.78 KB | None | 0 0
  1. PropertiesMana properties=PropertiesMana.get(player);
  2. if(properties.consumeMana(15)){
  3.     if(!world.isRemote){
  4.             player.heal(5);
  5.             world.playSoundAtEntity(player, RunicInscription.ID+":BlessingCast", 0.5F, 0.4F/(itemRand.nextFloat()*0.4F+0.8F));
  6.     }else{
  7.         for(int a=0;a<10;++a){
  8.             player.worldObj.spawnParticle("happyVillager", player.posX+1.0D, player.posY-1.0D+a*0.2, player.posZ, 0.0D, 0.7D, 0.0D);
  9.             player.worldObj.spawnParticle("happyVillager", player.posX-1.0D, player.posY-1.0D+a*0.2, player.posZ, 0.0D, 0.7D, 0.0D);
  10.             player.worldObj.spawnParticle("happyVillager", player.posX, player.posY-1.0D+a*0.2, player.posZ+1.0D, 0.0D, 0.7D, 0.0D);
  11.             player.worldObj.spawnParticle("happyVillager", player.posX, player.posY-1.0D+a*0.2, player.posZ-1.0D, 0.0D, 0.7D, 0.0D);
  12.         }
  13.     }
  14. }
Add Comment
Please, Sign In to add comment