Modding for the Fist time But I have a error.

Psycho_

Terrarian
So I just started Moding Terraria and I was having a lot of fun until I went into the game to build my mod and then I got a Error
c:\Users\Pc\Documents\My Games\Terraria\ModLoader\Mod Sources\ShurkensPlus\ShurkensPlus.cs(14,9) : error CS0246: The type or namespace name 'publicD' could not be found (are you missing a using directive or an assembly reference?)

My Code

using System;
using Microsoft.Xna.Framework;
using Terraria;
using Terraria.Graphics.Effects;
using Terraria.Graphics.Shaders;
using Terraria.ID;
using Terraria.ModLoader;

namespace ShurkensPlus.Items.Weapons
{
public class WoodShurken : ModItem
{
public override void SetDefaults()
{

item.name = "Wood Shurken"; //this is the item name
item.damage = 7; //this is the item damage
item.thrown = true; //this make the item do throwing damage
item.noMelee = true;
item.width = 32;
item.height = 32;
AddTooltip("Low Damage, Low penetration, Slow Speed. So Why did you make this?")
item.useTime = 30; //this is how fast you use the item
item.useAnimation = 90; //this is how fast the animation when the item is used
item.useStyle = 1;
item.knockBack = 2;
item.value = 10;
item.rare = 1;
item.reuseDelay = 60; //this is the item delay
item.useSound = 1;
item.autoReuse = false; //this make the item auto reuse
item.shoot = mod.ProjectileType("WoodShurkenP"); //javelin projectile
item.shootSpeed = 10f; //projectile speed
item.useTurn = true;
item.maxStack = 999; //this is the max stack of this item
item.consumable = true; //this make the item consumable when used
item.noUseGraphic = true;
}
public override void AddRecipes() //How to craft this item
{
ModRecipe recipe = new ModRecipe(mod);
recipe.AddIngredient(ItemID.Wood, 5);
recipe.AddTile(TileID.WorkBenches);
recipe.SetResult(this);
recipe.AddRecipe();
}
}
}
 
Back
Top Bottom