mirror of
https://github.com/Ellpeck/ActuallyAdditions.git
synced 2024-11-05 00:29:08 +01:00
40 lines
1.6 KiB
Java
40 lines
1.6 KiB
Java
|
package ellpeck.someprettyrandomstuff.crafting;
|
||
|
|
||
|
import cpw.mods.fml.common.registry.GameRegistry;
|
||
|
import ellpeck.someprettyrandomstuff.config.ConfigValues;
|
||
|
import ellpeck.someprettyrandomstuff.items.InitItems;
|
||
|
import ellpeck.someprettyrandomstuff.items.metalists.TheMiscItems;
|
||
|
import net.minecraft.init.Items;
|
||
|
import net.minecraft.item.ItemStack;
|
||
|
|
||
|
public class MiscCrafting{
|
||
|
|
||
|
public static void init(){
|
||
|
|
||
|
//Dough
|
||
|
if(ConfigValues.enabledMiscRecipes[TheMiscItems.DOUGH.ordinal()])
|
||
|
GameRegistry.addShapelessRecipe(new ItemStack(InitItems.itemMisc, 2, TheMiscItems.DOUGH.ordinal()),
|
||
|
new ItemStack(Items.wheat), new ItemStack(Items.wheat));
|
||
|
|
||
|
//Paper Cone
|
||
|
if(ConfigValues.enabledMiscRecipes[TheMiscItems.PAPER_CONE.ordinal()])
|
||
|
GameRegistry.addRecipe(new ItemStack(InitItems.itemMisc, 1, TheMiscItems.PAPER_CONE.ordinal()),
|
||
|
"P P", " P ",
|
||
|
'P', new ItemStack(Items.paper));
|
||
|
|
||
|
//Knife Handle
|
||
|
if(ConfigValues.enabledMiscRecipes[TheMiscItems.KNIFE_HANDLE.ordinal()])
|
||
|
GameRegistry.addShapelessRecipe(new ItemStack(InitItems.itemMisc, 1, TheMiscItems.KNIFE_HANDLE.ordinal()),
|
||
|
new ItemStack(Items.stick),
|
||
|
new ItemStack(Items.leather));
|
||
|
|
||
|
//Knife Blade
|
||
|
if(ConfigValues.enabledMiscRecipes[TheMiscItems.KNIFE_BLADE.ordinal()])
|
||
|
GameRegistry.addShapelessRecipe(new ItemStack(InitItems.itemMisc, 1, TheMiscItems.KNIFE_BLADE.ordinal()),
|
||
|
new ItemStack(Items.iron_ingot),
|
||
|
new ItemStack(Items.flint));
|
||
|
|
||
|
}
|
||
|
|
||
|
}
|