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-04-24 19:22:03 +02:00
|
|
|
import ellpeck.actuallyadditions.config.values.ConfigCrafting;
|
2015-03-07 12:51:28 +01:00
|
|
|
import ellpeck.actuallyadditions.items.InitItems;
|
2015-05-20 22:39:43 +02:00
|
|
|
import ellpeck.actuallyadditions.items.metalists.TheFoods;
|
2015-03-07 12:51:28 +01:00
|
|
|
import ellpeck.actuallyadditions.items.metalists.TheMiscItems;
|
2015-03-07 02:23:31 +01:00
|
|
|
import net.minecraft.init.Items;
|
|
|
|
import net.minecraft.item.ItemStack;
|
2015-04-04 05:20:19 +02:00
|
|
|
import net.minecraftforge.oredict.ShapedOreRecipe;
|
|
|
|
import net.minecraftforge.oredict.ShapelessOreRecipe;
|
2015-03-07 02:23:31 +01:00
|
|
|
|
|
|
|
public class MiscCrafting{
|
|
|
|
|
|
|
|
public static void init(){
|
|
|
|
|
|
|
|
//Dough
|
2015-04-24 19:22:03 +02:00
|
|
|
if(ConfigCrafting.DOUGH.isEnabled())
|
2015-04-04 05:20:19 +02:00
|
|
|
GameRegistry.addRecipe(new ShapelessOreRecipe(new ItemStack(InitItems.itemMisc, 2, TheMiscItems.DOUGH.ordinal()),
|
|
|
|
"cropWheat", "cropWheat"));
|
2015-03-07 02:23:31 +01:00
|
|
|
|
2015-05-20 22:39:43 +02:00
|
|
|
//Rice Dough
|
|
|
|
if(ConfigCrafting.RICE_DOUGH.isEnabled())
|
|
|
|
GameRegistry.addRecipe(new ShapelessOreRecipe(new ItemStack(InitItems.itemMisc, 2, TheMiscItems.RICE_DOUGH.ordinal()),
|
|
|
|
TheFoods.RICE.getOredictName(), TheFoods.RICE.getOredictName()));
|
|
|
|
|
2015-03-07 02:23:31 +01:00
|
|
|
//Paper Cone
|
2015-04-24 19:22:03 +02:00
|
|
|
if(ConfigCrafting.PAPER_CONE.isEnabled())
|
2015-03-07 02:23:31 +01:00
|
|
|
GameRegistry.addRecipe(new ItemStack(InitItems.itemMisc, 1, TheMiscItems.PAPER_CONE.ordinal()),
|
|
|
|
"P P", " P ",
|
|
|
|
'P', new ItemStack(Items.paper));
|
|
|
|
|
|
|
|
//Knife Handle
|
2015-04-24 19:22:03 +02:00
|
|
|
if(ConfigCrafting.KNIFE_HANDLE.isEnabled())
|
2015-04-04 05:20:19 +02:00
|
|
|
GameRegistry.addRecipe(new ShapelessOreRecipe(new ItemStack(InitItems.itemMisc, 1, TheMiscItems.KNIFE_HANDLE.ordinal()),
|
|
|
|
"stickWood",
|
|
|
|
new ItemStack(Items.leather)));
|
2015-03-07 02:23:31 +01:00
|
|
|
|
|
|
|
//Knife Blade
|
2015-04-24 19:22:03 +02:00
|
|
|
if(ConfigCrafting.KNIFE_BLADE.isEnabled())
|
2015-04-04 05:20:19 +02:00
|
|
|
GameRegistry.addRecipe(new ShapedOreRecipe(new ItemStack(InitItems.itemMisc, 1, TheMiscItems.KNIFE_BLADE.ordinal()),
|
2015-06-13 20:39:54 +02:00
|
|
|
"K", "F",
|
2015-04-04 05:20:19 +02:00
|
|
|
'K', "ingotIron",
|
|
|
|
'F', new ItemStack(Items.flint)));
|
2015-03-07 02:23:31 +01:00
|
|
|
}
|
|
|
|
|
|
|
|
}
|