-Added Chocolate Toast

This commit is contained in:
canitzp 2015-10-24 21:13:06 +02:00
parent 83dbbd0dcb
commit b8a1bca12c
2 changed files with 8 additions and 0 deletions

View file

@ -52,6 +52,7 @@ public enum ConfigCrafting{
CHOCOLATE("Chocolate", ConfigCategories.FOOD_CRAFTING), CHOCOLATE("Chocolate", ConfigCategories.FOOD_CRAFTING),
CHOCOLATE_CAKE("Chocolate Cake", ConfigCategories.FOOD_CRAFTING), CHOCOLATE_CAKE("Chocolate Cake", ConfigCategories.FOOD_CRAFTING),
TOAST("Toast", ConfigCategories.FOOD_CRAFTING), TOAST("Toast", ConfigCategories.FOOD_CRAFTING),
CHOCOTOAST("ChocoToast", ConfigCategories.FOOD_CRAFTING),
LEAF_BLOWER("Leaf Blower", ConfigCategories.ITEMS_CRAFTING), LEAF_BLOWER("Leaf Blower", ConfigCategories.ITEMS_CRAFTING),
LEAF_BLOWER_ADVANCED("Advanced Leaf Blower", ConfigCategories.ITEMS_CRAFTING), LEAF_BLOWER_ADVANCED("Advanced Leaf Blower", ConfigCategories.ITEMS_CRAFTING),

View file

@ -40,6 +40,7 @@ public class FoodCrafting{
public static IRecipe recipeChocolate; public static IRecipe recipeChocolate;
public static IRecipe recipeChocolateCake; public static IRecipe recipeChocolateCake;
public static IRecipe recipeToast; public static IRecipe recipeToast;
public static IRecipe recipeChocoToast;
public static void init(){ public static void init(){
@ -195,6 +196,12 @@ public class FoodCrafting{
new ItemStack(Items.bread)); new ItemStack(Items.bread));
recipeToast = Util.GetRecipes.lastIRecipe(); recipeToast = Util.GetRecipes.lastIRecipe();
} }
//ChocoToast:
if(ConfigCrafting.CHOCOTOAST.isEnabled()){
GameRegistry.addShapelessRecipe(new ItemStack(InitItems.itemFoods, 1, TheFoods.CHOCOTOAST.ordinal()), new ItemStack(InitItems.itemFoods, 1, TheFoods.TOAST.ordinal()), new ItemStack(InitItems.itemFoods, 1, TheFoods.CHOCOLATE.ordinal()));
recipeChocoToast = Util.GetRecipes.lastIRecipe();
}
} }
} }