From dde19d780c1a02a21b29e6731cd8ec18d18913ba Mon Sep 17 00:00:00 2001 From: Cheeserolls Date: Sun, 17 May 2015 14:39:37 +0100 Subject: [PATCH] Add first BOP crafting recipe --- .../common/init/ModCrafting.java | 32 +++++++++++++++++++ .../biomesoplenty/core/BiomesOPlenty.java | 10 ++---- 2 files changed, 35 insertions(+), 7 deletions(-) create mode 100644 src/main/java/biomesoplenty/common/init/ModCrafting.java diff --git a/src/main/java/biomesoplenty/common/init/ModCrafting.java b/src/main/java/biomesoplenty/common/init/ModCrafting.java new file mode 100644 index 000000000..c74ca3c59 --- /dev/null +++ b/src/main/java/biomesoplenty/common/init/ModCrafting.java @@ -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())}); + } + +} \ No newline at end of file diff --git a/src/main/java/biomesoplenty/core/BiomesOPlenty.java b/src/main/java/biomesoplenty/core/BiomesOPlenty.java index 196a8f001..9ad184422 100644 --- a/src/main/java/biomesoplenty/core/BiomesOPlenty.java +++ b/src/main/java/biomesoplenty/core/BiomesOPlenty.java @@ -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