hi guys, this is my first day terraria modding, can you tell me whats wrong? i get CS0117

Subbokid

Terrarian
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();
}
}
}
 

Attachments

  • opa gangnam style (1900).png
    opa gangnam style (1900).png
    250.9 KB · Views: 16
You're looking at old code, look at this example:
Example Item
 
Back
Top Bottom