Make sure you're actually deriving from ModItem.
It should already be doing that... Anyway, here's my code, maybe you can find something
using Terraria;
using Terraria.ModLoader;
using Terraria.ID;
using System.Collections.Generic;
namespace TheFlashMod.Items.Armor
{
public class TheFlashHelmet : ModItem
{
public override bool Autoload(ref string name, ref string texture, IList<EquipType> equips)
{
equips.Add(EquipType.Head);
return true;
}
public override void SetDefaults()
{
item.name = "The Flash Helmet";
item.width = 18;
item.height = 18;
item.toolTip = "The CW Flash Helmet!";
item.toolTip2 = "20% movement speed.";
item.tooltip3 = "5% melee speed.";
item.value = 10000;
item.rare = 8;
item.defense = 10;
}
/*
public override bool IsArmorSet(Item head, Item body, Item legs)
{
return body.type == mod.ItemType("The Flash Breastplate") && legs.type == mod.ItemType("The Flash Leggings");
}
*/
public override void UpdateArmorSet(Player player)
{
player.setBonus = "Run, Barry, Run!";
player.speedBoost *= 0.25f;
player.ShadowTail = True;
}
public override void AddRecipes()
{
ModRecipe r = new ModRecipe(mod);
r.AddIngredient(null, "Wood", 1);
r.AddTile(TileID.WorkBenches);
r.SetResult(this);
r.AddRecipe();
}
}
}