I REALLY need help, I am developing my first mod and I have had about 30 errors which have been solved, but this one just does not make any sense what so ever. CSerror0117:
'Terraria.Item' does not contain a definition for 'name'
It says there is a problem with line 15 but I cant solve it.
My Coding is this:
using System;
using Microsoft.Xna.Framework;
using Terraria;
using Terraria.Graphics.Effects;
using Terraria.Graphics.Shaders;
using Terraria.ID;
using Terraria.ModLoader;
namespace YourModName.Items.Weapons //where is located
{
public class DirtSword : ModItem
{
public override void SetDefaults()
{
Item.Name = "Dirt Sword"; //sword name
Item.damage = 5; //sword damage
Item.melee = true;
Item.width = 50;
item.height = 50;
item.toopTip = "Finaly a starter weapon that isnt complete poop, maybe I can use dirt to make more things...";
item.useTime = 25;
Item.useAnimation = 25;
Item.useStyle = 1;
Item.Knockback = 5;
Item.value = .33;
Item.rare = 10;
Item.usesound = 1;
Item.autoReuse = true;
Item.useTurn = true;
}
public override void AddRecipes()
{
ModRecipe recipe = new ModRecipe(Mod);
recipe.AddIngredient(ItemID.DirtBlock, 1);
recipe.AddTile(TileID.WorkBenches);
recipe.SetResult(this);
recipe.AddRecipe();
}
}
}
Please Help me as soon as possible, I have some great ideas I would love to enter into the terraira modding community, Thanks in advance!
[doublepost=1468610756,1468610642][/doublepost]
View attachment 127104
I extracted the files to my desktop as instructed, and then I got this error when I run the installer.
I think they are planning to do this, it would be nice as some of my friends are running a ol' macbook