Can someone Help With my code?

BlockZombie8346

Terrarian
I cant seem to find out whats wrong with my code, and nothing could help me! it keeps coming up with the error:CS1061 on lines 11 and 12 and i just cant fix it. can someone help?

here is my code:
using Terraria;
using Terraria.ID;
using Terraria.ModLoader;

namespace YourModName.Items
{
public class CopperSkullAccessory : ModItem
{
public override void SetStaticDefaults()
{
DisplayName.SetDefault("Copper Skull");
Tooltip.SetDefault("Increases damage and defense");
}

public override void SetDefaults()
{
Item.width = 28;
Item.height = 28;
Item.accessory = true;
Item.value = Item.sellPrice(copper: 5); // Set value in copper coins
Item.rare = ItemRarityID.White; // Set rarity (White is common)
}

public override void UpdateAccessory(Player player, bool hideVisual)
{
player.statDefense += 1; // Increase defense by 1 point
}

public override void AddRecipes()
{
Recipe recipe = CreateRecipe();
recipe.AddIngredient(ItemID.CopperBar, 3);
recipe.AddTile(TileID.Furnaces);
recipe.Register();
}
}

}
 
Back
Top Bottom