using System;
using System.Collections.Generic;
using Microsoft.Xna.Framework;
using Microsoft.Xna.Framework.Graphics;
using TAPI;
using Terraria;
namespace INSERTINTERNALNAMEHERE.Items
{
public class Modbase : ModBase //Use ModBase instead of Items.
{
public override void OnLoad() //This will call the code when you load up the game.
{
Recipe.newRecipe.createItem.SetDefaults(1294, false); //This is where the item you want to add a recipe to goes. "1294" is the ID of the Picksaw.
Recipe.newRecipe.createItem.stack = 1; //This is how many are produced by this recipe.
Recipe.newRecipe.requiredItem.Add(new Item().SetDefaults( ItemDef.byName["InternalModName:ItemName"].type, false))
Recipe.newRecipe.requiredItem[2].stack = 1; //We need 1 Chaindrill.
Recipe.newRecipe.requiredTile.Add(114); //This is where the crafting station you need goes. "114" is the ID for the Tinkerer's Workshop.
Recipe.AddRecipe(); //This tidbit of code adds the recipe into the game.
}
}
}