package squeek.veganoption.content.modules;

import net.minecraft.entity.player.EntityPlayer;
import net.minecraft.init.Blocks;
import net.minecraft.init.Items;
import net.minecraft.init.MobEffects;
import net.minecraft.item.Item;
import net.minecraft.item.ItemFood;
import net.minecraft.item.ItemStack;
import net.minecraft.potion.PotionEffect;
import net.minecraftforge.fml.common.registry.GameRegistry;
import net.minecraftforge.fml.relauncher.Side;
import net.minecraftforge.fml.relauncher.SideOnly;
import net.minecraftforge.oredict.OreDictionary;
import squeek.veganoption.ModInfo;
import squeek.veganoption.VeganOption;
import squeek.veganoption.content.ContentHelper;
import squeek.veganoption.content.IContentModule;
import squeek.veganoption.content.Modifiers;
import squeek.veganoption.content.modifiers.DropsModifier.BlockSpecifier;
import squeek.veganoption.content.modifiers.DropsModifier.DropSpecifier;

public class ToxicMushroom implements IContentModule
{
	public static Item falseMorel;
	public static Item falseMorelFermented;

	@Override
	public void create()
	{
		falseMorel = new ItemFood(2, 0.8F, false)
				.setPotionEffect(new PotionEffect(MobEffects.POISON, 5, 0), 1.0F)
				.setUnlocalizedName(ModInfo.MODID + ".falseMorel")
				.setCreativeTab(VeganOption.creativeTab)
				.setRegistryName(ModInfo.MODID_LOWER, "falseMorel");
		GameRegistry.register(falseMorel);

		falseMorelFermented = new Item()
				.setUnlocalizedName(ModInfo.MODID + ".falseMorelFermented")
				.setCreativeTab(VeganOption.creativeTab)
				.setRegistryName(ModInfo.MODID_LOWER, "falseMorelFermented");
		GameRegistry.register(falseMorelFermented);
	}

	@Override
	public void oredict()
	{
		OreDictionary.registerOre(ContentHelper.poisonousOreDict, Items.SPIDER_EYE);
		OreDictionary.registerOre(ContentHelper.poisonousOreDict, falseMorel);
		OreDictionary.registerOre(ContentHelper.fermentedOreDict, Items.FERMENTED_SPIDER_EYE);
		OreDictionary.registerOre(ContentHelper.fermentedOreDict, falseMorelFermented);
	}

	@Override
	public void recipes()
	{
		Modifiers.recipes.convertInput(new ItemStack(Items.SPIDER_EYE), ContentHelper.poisonousOreDict);
		Modifiers.recipes.excludeOutput(new ItemStack(Items.FERMENTED_SPIDER_EYE));

		Modifiers.recipes.convertInput(new ItemStack(Items.FERMENTED_SPIDER_EYE), ContentHelper.fermentedOreDict);

		DropSpecifier dontDropWhenSilkTouching = new DropSpecifier(new ItemStack(falseMorel), 0.15f)
		{
			@Override
			public boolean shouldDrop(EntityPlayer harvester, int fortuneLevel, boolean isSilkTouching)
			{
				return !isSilkTouching && super.shouldDrop(harvester, fortuneLevel, isSilkTouching);
			}
		};
		Modifiers.drops.addDropsToBlock(new BlockSpecifier(Blocks.MYCELIUM), dontDropWhenSilkTouching);

		GameRegistry.addShapelessRecipe(new ItemStack(falseMorelFermented), new ItemStack(falseMorel), new ItemStack(Blocks.BROWN_MUSHROOM_BLOCK), new ItemStack(Items.SUGAR));
	}

	@Override
	public void finish()
	{
	}

	@SideOnly(Side.CLIENT)
	@Override
	public void clientSidePost()
	{
	}

	@SideOnly(Side.CLIENT)
	@Override
	public void clientSidePre()
	{
		ContentHelper.registerTypicalItemModel(falseMorel);
		ContentHelper.registerTypicalItemModel(falseMorelFermented);
	}
}

@@ -2881,14 +2881,8 @@
 ROOM
-_BLOCK
 ), n

Fix fermented false morel recipe - Was using brown mushroom block instead of brown mushroom