xaedblade

Come mod with me Ep4

Aug 8th, 2012
141
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Java 0.65 KB | None | 0 0
  1. //Knockback
  2. int j=10/3;
  3. par2EntityLiving.addVelocity(-MathHelper.sin((par3EntityLiving.rotationYaw * (float)Math.PI) / 180F) * (float)j * 0.5F, 0.10000000000000001D, MathHelper.cos((par3EntityLiving.rotationYaw * (float)Math.PI) / 180F) * (float)j * 0.5F);
  4.  
  5. //Causes the item to glow
  6. public boolean hasEffect(ItemStack par1ItemStack)
  7.     {
  8.         if(par1ItemStack.itemID == mod_BetterItems.pieGoldenApple.shiftedIndex)
  9.         {
  10.             return true;
  11.         }
  12.         else
  13.             return false;
  14.     }
  15.  
  16. //Checks to see what the item is then sets mob on fire
  17. if(par1ItemStack.itemID == mod_tutorial.swordRed.shiftedIndex)
  18. {
  19.     par2EntityLiving.setFire(20);
  20. }
Advertisement
Add Comment
Please, Sign In to add comment