Advertisement
Guest User

Untitled

a guest
Mar 23rd, 2017
58
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.33 KB | None | 0 0
  1. protected void onFoodEaten(ItemStack stack, World worldIn, EntityPlayer player)
  2. {
  3. if (!worldIn.isRemote && this.potionId > 0 && worldIn.rand.nextFloat() < this.potionEffectProbability)
  4. {
  5. player.addPotionEffect(new PotionEffect(this.potionId, this.potionDuration * 20, this.potionAmplifier));
  6. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement