public override void AddRecipes() { ModRecipe recipe = new ModRecipe(this); recipe.AddIngredient(null, "ExampleItem"); recipe.SetResult(ItemID.Wood, 999); recipe.AddRecipe(); recipe = new ModRecipe(this); recipe.AddIngredient(null, "ExampleItem"); recipe.SetResult(ItemID.Silk, 999); recipe.AddRecipe(); recipe = new ModRecipe(this); recipe.AddIngredient(null, "ExampleItem"); recipe.SetResult(ItemID.IronOre, 999); recipe.AddRecipe(); recipe = new ModRecipe(this); recipe.AddIngredient(null, "ExampleItem"); recipe.SetResult(ItemID.GravitationPotion, 20); recipe.AddRecipe(); recipe = new ModRecipe(this); recipe.AddIngredient(null, "ExampleItem"); recipe.SetResult(ItemID.GoldChest); recipe.AddRecipe(); recipe = new ModRecipe(this); recipe.AddIngredient(null, "ExampleItem"); recipe.SetResult(ItemID.MusicBoxDungeon); recipe.AddRecipe(); RecipeHelper.AddBossRecipes(this); }
// Learn how to do Recipes: https://github.com/blushiemagic/tModLoader/wiki/Basic-Recipes public override void AddRecipes() { // Here is an example of a recipe. ModRecipe recipe = new ModRecipe(this); recipe.AddIngredient(null, "ExampleItem"); recipe.SetResult(ItemID.Wood, 999); recipe.AddRecipe(); // To make ExampleMod more organized, the rest of the recipes are added elsewhere, see the method calls below. // See RecipeHelper.cs RecipeHelper.AddExampleRecipes(this); RecipeHelper.ExampleRecipeEditing(this); }