palegrass
Skeletron Prime
@Coolgaming933
Seems you had code from tModLoader 0.9, you need to separate the tooltip and name from the rest now.
here's it fixed up, tell me if it works!
using Terraria;
using Terraria.ID;
using Terraria.ModLoader;
namespace UpdatedTerrariaMod.Items.IceyGreatsword
{
public class IceyGreatsword : ModItem
{
public override void SetStaticDefaults()
{
DisplayName.SetDefault("Icey Greatsword");
Tooltip.SetDefault("An Icey Blade That Can Resist Fire.");
}
public override void SetDefaults()
{
item.damage = 56;
item.melee = true;
item.width = 60;
item.height = 60;
item.useTime = 20;
item.useAnimation = 20;
item.useStyle = 1;
item.knockBack = 6;
item.value = Item.buyPrice(0, 1, 0, 0);
item.rare = 2;
item.UseSound = SoundID.Item1;
item.autoReuse = false;
}
public override void AddRecipes()
{
ModRecipe recipe = new ModRecipe(mod);
recipe.AddIngredient(ItemID.DirtBlock, 10);
recipe.AddTile(TileID.MythrilAnvil);
recipe.SetResult(this);
recipe.AddRecipe();
}
}
}
I think that the code is correct but I'm not Good enough to setup the script