2015-03-07 12:51:28 +01:00
|
|
|
package ellpeck.actuallyadditions.crafting;
|
2015-03-07 02:23:31 +01:00
|
|
|
|
|
|
|
import cpw.mods.fml.common.registry.GameRegistry;
|
2015-03-07 12:51:28 +01:00
|
|
|
import ellpeck.actuallyadditions.blocks.InitBlocks;
|
2015-03-30 15:08:19 +02:00
|
|
|
import ellpeck.actuallyadditions.blocks.metalists.TheMiscBlocks;
|
2015-03-07 12:51:28 +01:00
|
|
|
import ellpeck.actuallyadditions.config.ConfigValues;
|
|
|
|
import ellpeck.actuallyadditions.items.InitItems;
|
|
|
|
import ellpeck.actuallyadditions.items.metalists.TheMiscItems;
|
|
|
|
import ellpeck.actuallyadditions.util.Util;
|
2015-03-07 02:23:31 +01:00
|
|
|
import net.minecraft.init.Blocks;
|
|
|
|
import net.minecraft.init.Items;
|
|
|
|
import net.minecraft.item.ItemStack;
|
|
|
|
|
|
|
|
public class BlockCrafting{
|
|
|
|
|
|
|
|
public static void init(){
|
|
|
|
|
|
|
|
//Compost
|
|
|
|
if(ConfigValues.enableCompostRecipe)
|
|
|
|
GameRegistry.addRecipe(new ItemStack(InitBlocks.blockCompost),
|
|
|
|
"W W", "WFW", "WWW",
|
|
|
|
'W', new ItemStack(Blocks.planks, 1, Util.WILDCARD),
|
|
|
|
'F', new ItemStack(InitItems.itemMisc, 1, TheMiscItems.MASHED_FOOD.ordinal()));
|
|
|
|
|
2015-03-30 15:08:19 +02:00
|
|
|
//Quartz Block
|
|
|
|
GameRegistry.addRecipe(new ItemStack(InitBlocks.blockMisc, 1, TheMiscBlocks.QUARTZ.ordinal()),
|
|
|
|
"QQ", "QQ",
|
|
|
|
'Q', new ItemStack(InitItems.itemMisc, 1, TheMiscItems.QUARTZ.ordinal()));
|
|
|
|
|
|
|
|
//Fishing Net
|
|
|
|
GameRegistry.addRecipe(new ItemStack(InitBlocks.blockFishingNet),
|
|
|
|
"SSS", "SDS", "SSS",
|
|
|
|
'D', new ItemStack(Items.diamond),
|
|
|
|
'S', new ItemStack(Items.string));
|
|
|
|
|
|
|
|
//Quartz Pillar
|
|
|
|
GameRegistry.addRecipe(new ItemStack(InitBlocks.blockMisc, 1, TheMiscBlocks.QUARTZ_PILLAR.ordinal()),
|
|
|
|
"Q", "Q",
|
|
|
|
'Q', new ItemStack(InitItems.itemMisc, 1, TheMiscItems.QUARTZ.ordinal()));
|
|
|
|
|
|
|
|
//Chiseled Quartz
|
|
|
|
GameRegistry.addRecipe(new ItemStack(InitBlocks.blockMisc, 2, TheMiscBlocks.QUARTZ_CHISELED.ordinal()),
|
|
|
|
"Q", "Q",
|
|
|
|
'Q', new ItemStack(InitBlocks.blockMisc, 1, TheMiscBlocks.QUARTZ.ordinal()));
|
|
|
|
|
2015-03-21 16:11:22 +01:00
|
|
|
//Inputter
|
|
|
|
if(ConfigValues.enableInputterRecipe)
|
|
|
|
GameRegistry.addRecipe(new ItemStack(InitBlocks.blockInputter),
|
|
|
|
"WWW", "WHW", "WWW",
|
|
|
|
'W', new ItemStack(Blocks.planks, 1, Util.WILDCARD),
|
|
|
|
'H', new ItemStack(Blocks.hopper));
|
|
|
|
|
2015-03-07 02:23:31 +01:00
|
|
|
//Crusher
|
|
|
|
if(ConfigValues.enableCrusherRecipe)
|
|
|
|
GameRegistry.addRecipe(new ItemStack(InitBlocks.blockGrinder),
|
|
|
|
"CFC", "CPC", "CFC",
|
|
|
|
'C', new ItemStack(Blocks.cobblestone),
|
|
|
|
'P', new ItemStack(Blocks.piston),
|
|
|
|
'F', new ItemStack(Items.flint));
|
|
|
|
|
|
|
|
//Double Crusher
|
|
|
|
if(ConfigValues.enableCrusherDoubleRecipe)
|
|
|
|
GameRegistry.addRecipe(new ItemStack(InitBlocks.blockGrinderDouble),
|
|
|
|
"CCC", "RPR", "CCC",
|
|
|
|
'C', new ItemStack(Blocks.cobblestone),
|
|
|
|
'R', new ItemStack(InitBlocks.blockGrinder),
|
|
|
|
'P', new ItemStack(Blocks.piston));
|
|
|
|
|
|
|
|
//Double Furnace
|
|
|
|
if(ConfigValues.enableFurnaceDoubleRecipe)
|
|
|
|
GameRegistry.addRecipe(new ItemStack(InitBlocks.blockFurnaceDouble),
|
|
|
|
"CCC", "RPR", "CCC",
|
|
|
|
'C', new ItemStack(Blocks.cobblestone),
|
|
|
|
'R', new ItemStack(Blocks.furnace),
|
|
|
|
'P', new ItemStack(Items.brick));
|
|
|
|
|
|
|
|
//Feeder
|
|
|
|
if(ConfigValues.enableFeederRecipe)
|
|
|
|
GameRegistry.addRecipe(new ItemStack(InitBlocks.blockFeeder),
|
|
|
|
"WCW", "WHW", "WCW",
|
|
|
|
'W', new ItemStack(Blocks.planks, 1, Util.WILDCARD),
|
|
|
|
'C', new ItemStack(Items.golden_carrot),
|
|
|
|
'H', new ItemStack(Items.wheat));
|
|
|
|
|
|
|
|
//Giant Chest
|
|
|
|
if(ConfigValues.enableGiantChestRecipe)
|
|
|
|
GameRegistry.addRecipe(new ItemStack(InitBlocks.blockGiantChest),
|
|
|
|
"CWC", "W W", "CWC",
|
|
|
|
'C', new ItemStack(Blocks.chest),
|
|
|
|
'W', new ItemStack(Blocks.planks, 1, Util.WILDCARD));
|
|
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
}
|