Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- protected void onFoodEaten(ItemStack stack, World worldIn, EntityPlayer player)
- {
- if (!worldIn.isRemote && this.potionId > 0 && worldIn.rand.nextFloat() < this.potionEffectProbability)
- {
- player.addPotionEffect(new PotionEffect(this.potionId, this.potionDuration * 20, this.potionAmplifier));
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement