Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- //Knockback
- int j=10/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);
- //Causes the item to glow
- public boolean hasEffect(ItemStack par1ItemStack)
- {
- if(par1ItemStack.itemID == mod_BetterItems.pieGoldenApple.shiftedIndex)
- {
- return true;
- }
- else
- return false;
- }
- //Checks to see what the item is then sets mob on fire
- if(par1ItemStack.itemID == mod_tutorial.swordRed.shiftedIndex)
- {
- par2EntityLiving.setFire(20);
- }
Advertisement
Add Comment
Please, Sign In to add comment