2015-08-29 14:33:25 +02:00
|
|
|
|
/*
|
|
|
|
|
* This file ("MiscCrafting.java") is part of the Actually Additions Mod for Minecraft.
|
|
|
|
|
* It is created and owned by Ellpeck and distributed
|
|
|
|
|
* under the Actually Additions License to be found at
|
|
|
|
|
* http://github.com/Ellpeck/ActuallyAdditions/blob/master/README.md
|
|
|
|
|
* View the source code at https://github.com/Ellpeck/ActuallyAdditions
|
|
|
|
|
*
|
|
|
|
|
* <EFBFBD> 2015 Ellpeck
|
|
|
|
|
*/
|
|
|
|
|
|
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-08-30 01:19: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-08-30 01:19:03 +02:00
|
|
|
|
}
|
2015-03-07 02:23:31 +01:00
|
|
|
|
|
2015-05-20 22:39:43 +02:00
|
|
|
|
//Rice Dough
|
2015-08-30 01:19:03 +02:00
|
|
|
|
if(ConfigCrafting.RICE_DOUGH.isEnabled()){
|
2015-05-20 22:39:43 +02:00
|
|
|
|
GameRegistry.addRecipe(new ShapelessOreRecipe(new ItemStack(InitItems.itemMisc, 2, TheMiscItems.RICE_DOUGH.ordinal()),
|
2015-07-18 18:08:06 +02:00
|
|
|
|
new ItemStack(InitItems.itemFoods, 1, TheFoods.RICE.ordinal()), new ItemStack(InitItems.itemFoods, 1, TheFoods.RICE.ordinal()), new ItemStack(InitItems.itemFoods, 1, TheFoods.RICE.ordinal())));
|
2015-08-30 01:19:03 +02:00
|
|
|
|
}
|
2015-05-20 22:39:43 +02:00
|
|
|
|
|
2015-03-07 02:23:31 +01:00
|
|
|
|
//Paper Cone
|
2015-08-30 01:19: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));
|
2015-08-30 01:19:03 +02:00
|
|
|
|
}
|
2015-03-07 02:23:31 +01:00
|
|
|
|
|
|
|
|
|
//Knife Handle
|
2015-08-30 01:19: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-08-30 01:19:03 +02:00
|
|
|
|
}
|
2015-03-07 02:23:31 +01:00
|
|
|
|
|
|
|
|
|
//Knife Blade
|
2015-08-30 01:19: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-08-28 15:29:06 +02:00
|
|
|
|
"K", "K", "F",
|
2015-04-04 05:20:19 +02:00
|
|
|
|
'K', "ingotIron",
|
|
|
|
|
'F', new ItemStack(Items.flint)));
|
2015-08-30 01:19:03 +02:00
|
|
|
|
}
|
2015-03-07 02:23:31 +01:00
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
}
|