Add first BOP crafting recipe
This commit is contained in:
parent
e2a1f5bcf7
commit
dde19d780c
2 changed files with 35 additions and 7 deletions
32
src/main/java/biomesoplenty/common/init/ModCrafting.java
Normal file
32
src/main/java/biomesoplenty/common/init/ModCrafting.java
Normal 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())});
|
||||||
|
}
|
||||||
|
|
||||||
|
}
|
|
@ -23,13 +23,7 @@ import org.apache.logging.log4j.LogManager;
|
||||||
import org.apache.logging.log4j.Logger;
|
import org.apache.logging.log4j.Logger;
|
||||||
|
|
||||||
import biomesoplenty.common.command.BOPCommand;
|
import biomesoplenty.common.command.BOPCommand;
|
||||||
import biomesoplenty.common.init.ModBiomes;
|
import biomesoplenty.common.init.*;
|
||||||
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;
|
|
||||||
|
|
||||||
@Mod(modid = BiomesOPlenty.MOD_ID, name = BiomesOPlenty.MOD_NAME)
|
@Mod(modid = BiomesOPlenty.MOD_ID, name = BiomesOPlenty.MOD_NAME)
|
||||||
public class BiomesOPlenty
|
public class BiomesOPlenty
|
||||||
|
@ -61,6 +55,8 @@ public class BiomesOPlenty
|
||||||
ModGenerators.init();
|
ModGenerators.init();
|
||||||
ModBiomes.init();
|
ModBiomes.init();
|
||||||
ModHandlers.init();
|
ModHandlers.init();
|
||||||
|
|
||||||
|
ModCrafting.init();
|
||||||
}
|
}
|
||||||
|
|
||||||
@EventHandler
|
@EventHandler
|
||||||
|
|
Loading…
Reference in a new issue