Add first BOP crafting recipe

This commit is contained in:
Cheeserolls 2015-05-17 14:39:37 +01:00
parent e2a1f5bcf7
commit dde19d780c
2 changed files with 35 additions and 7 deletions

View File

@ -0,0 +1,32 @@
/*******************************************************************************
* Copyright 2014, the Biomes O' Plenty Team
*
* This work is licensed under a Creative Commons Attribution-NonCommercial-NoDerivatives 4.0 International Public License.
*
* To view a copy of this license, visit http://creativecommons.org/licenses/by-nc-nd/4.0/.
******************************************************************************/
package biomesoplenty.common.init;
import biomesoplenty.api.block.BOPBlocks;
import biomesoplenty.common.block.BlockBOPFlower2;
import net.minecraft.init.Items;
import net.minecraft.item.EnumDyeColor;
import net.minecraft.item.ItemStack;
import net.minecraftforge.fml.common.registry.GameRegistry;
public class ModCrafting
{
public static void init()
{
addCraftingRecipies();
}
private static void addCraftingRecipies()
{
// Plants
GameRegistry.addShapelessRecipe(new ItemStack(Items.dye, 1, EnumDyeColor.RED.getDyeDamage()), new Object[] {new ItemStack(BOPBlocks.flower2, 1, BlockBOPFlower2.FlowerType.ROSE.ordinal())});
}
}

View File

@ -23,13 +23,7 @@ import org.apache.logging.log4j.LogManager;
import org.apache.logging.log4j.Logger;
import biomesoplenty.common.command.BOPCommand;
import biomesoplenty.common.init.ModBiomes;
import biomesoplenty.common.init.ModBlocks;
import biomesoplenty.common.init.ModConfiguration;
import biomesoplenty.common.init.ModEntities;
import biomesoplenty.common.init.ModGenerators;
import biomesoplenty.common.init.ModHandlers;
import biomesoplenty.common.init.ModItems;
import biomesoplenty.common.init.*;
@Mod(modid = BiomesOPlenty.MOD_ID, name = BiomesOPlenty.MOD_NAME)
public class BiomesOPlenty
@ -61,6 +55,8 @@ public class BiomesOPlenty
ModGenerators.init();
ModBiomes.init();
ModHandlers.init();
ModCrafting.init();
}
@EventHandler