How to add a recipe to a vanilla item?

I'm pretty sure you just have to add this in:

public override void AddRecipes()
{
ModRecipe recipe = new ModRecipe(mod);
recipe.AddIngredient(null, "ModdedItemHere", 2);
recipe.AddTile(TileID.CraftingStationHere);
recipe.SetResult(VanillaItemIdHere);
recipe.AddRecipe();
}

If you want the item to be made with vanilla materials then do this:

public override void AddRecipes()
{
ModRecipe recipe = new ModRecipe(mod);
recipe.AddIngredient(ItemID.VanillaItemHere, 12);
recipe.AddTile(TileID.CraftingStationHere);
recipe.SetResult(VanillaItemIdHere);
recipe.AddRecipe();
}

I'm new to coding but I still think this should help.
 
Back
Top Bottom