DroopyTheeDog
Terrarian
Hello, I have been working on trying to fix this the last hour and it just isn't working. I need help, and I am very new to this.
"
c:\Users\babyf\OneDrive\Documents\My Games\Terraria\ModLoader\Mod Sources\Mod\Items\MagnificentSword.cs(10,28) : error CS1002: ; expected
c:\Users\babyf\OneDrive\Documents\My Games\Terraria\ModLoader\Mod Sources\Mod\Items\MagnificentSword.cs(18,9) : error CS1061: 'Terraria.Item' does not contain a definition for 'toolTip' and no extension method 'toolTip' accepting a first argument of type 'Terraria.Item' could be found (are you missing a using directive or an assembly reference?)
c:\Users\babyf\OneDrive\Documents\My Games\Terraria\ModLoader\Mod Sources\Mod\Projectiles\DragonsBreathProjectile.cs(14,15) : error CS1061: 'Terraria.Projectile' does not contain a definition for 'name' and no extension method 'name' accepting a first argument of type 'Terraria.Projectile' could be found (are you missing a using directive or an assembly reference?)
"
Terraria Modding Community, your my only hope! (hopefully you get the reference)
"
c:\Users\babyf\OneDrive\Documents\My Games\Terraria\ModLoader\Mod Sources\Mod\Items\MagnificentSword.cs(10,28) : error CS1002: ; expected
c:\Users\babyf\OneDrive\Documents\My Games\Terraria\ModLoader\Mod Sources\Mod\Items\MagnificentSword.cs(18,9) : error CS1061: 'Terraria.Item' does not contain a definition for 'toolTip' and no extension method 'toolTip' accepting a first argument of type 'Terraria.Item' could be found (are you missing a using directive or an assembly reference?)
c:\Users\babyf\OneDrive\Documents\My Games\Terraria\ModLoader\Mod Sources\Mod\Projectiles\DragonsBreathProjectile.cs(14,15) : error CS1061: 'Terraria.Projectile' does not contain a definition for 'name' and no extension method 'name' accepting a first argument of type 'Terraria.Projectile' could be found (are you missing a using directive or an assembly reference?)
"
Code:
using Terraria.ID;
using Terraria.ModLoader;
namespace SouldzExtravagandaMod.Items
{
public class MagnificentSword : ModItem
{
public override void SetStaticDefaults()
{
base.SetStaticDefaults()
DisplayName.SetDefault("Magnificent Sword");
}
public override void SetDefaults()
{
item.damage = 32;
item.melee = true;
item.width = 40;
item.toolTip = "A sword made from the finest Hellstone, Gold, and Silver!";
item.height = 40;
item.useTime = 20;
item.useAnimation = 20;
item.useStyle = 1;
item.knockBack = 6;
item.value = 10000;
item.rare = 3;
item.UseSound = SoundID.Item1;
item.autoReuse = true;
item.shoot = mod.ProjectileType("DragonsBreathProjectile"); //What the item shoots, retains an int value | 3
item.shootSpeed = 8f; //How fast the projectile fires
}
public override void AddRecipes()
{
ModRecipe recipe = new ModRecipe(mod);
recipe.AddIngredient(ItemID.DirtBlock, 10);
recipe.AddTile(TileID.WorkBenches);
recipe.SetResult(this);
recipe.AddRecipe();
}
}
}
Terraria Modding Community, your my only hope! (hopefully you get the reference)
Last edited: