using Terraria;
using Terraria.ID;
using Terraria.ModLoader;
namespace Sb.Content
{
public class Recipes : ModSystem
{
// Other methods and fields here...
public override void AddRecipes()
{
// Here is an example of a recipe.
Recipe recipe = Recipe.CreateRecipe(ItemID.Wood, 999);
recipe.AddIngredient<Content.Items.LifeCube>();
recipe.Register();
// Here we reuse 'recipe', meaning we don't need to re-declare that it is a Recipe
Recipe recipe = Recipe.CreateRecipe(ItemID.PumpkinPie, 2);
recipe.AddIngredient(ItemID.BlueBerries, 20);
recipe.AddTile(TileID.WorkBenches);
recipe.Register();
}
}
}
using Terraria.ID;
using Terraria.ModLoader;
namespace Sb.Content
{
public class Recipes : ModSystem
{
// Other methods and fields here...
public override void AddRecipes()
{
// Here is an example of a recipe.
Recipe recipe = Recipe.CreateRecipe(ItemID.Wood, 999);
recipe.AddIngredient<Content.Items.LifeCube>();
recipe.Register();
// Here we reuse 'recipe', meaning we don't need to re-declare that it is a Recipe
Recipe recipe = Recipe.CreateRecipe(ItemID.PumpkinPie, 2);
recipe.AddIngredient(ItemID.BlueBerries, 20);
recipe.AddTile(TileID.WorkBenches);
recipe.Register();
}
}
}