It keeps getting this message
Missing texture Project2/Items/Weapons/Ak_47
at Terraria.ModLoader.ModLoader.GetTexture(String name)
at Terraria.ModLoader.Mod.SetupContent()
at Terraria.ModLoader.ModLoader.do_Load(Object threadContext)
sorry if this is getting annoying
[DOUBLEPOST=1452593033,1452592965][/DOUBLEPOST]this is the code
using System;
using Microsoft.Xna.Framework;
using Terraria;
using Terraria.ID;
using Terraria.ModLoader;
namespace Project2.Items.Weapons
{
public class Ak_47 : ModItem
{
public override void SetDefaults ()
{
item.name = "Ak-47";
item.damage = 50;
item.ranged = true;
item.width = 40;
item.height = 20;
item.toolTip = "Just an everyday Ak-47.";
item.useTime = 20;
item.useAnimation = 20;
item.useStyle = 5;
item.noMelee = true; //so the item's animation doesn't do damage
item.knockBack = 4;
item.value = 10000;
item.rare = 2;
item.useSound = 11;
item.autoReuse = true;
item.shoot = 10; //idk why but all the guns in the vanilla source have this
item.shootSpeed = 16f;
item.useAmmo = ProjectileID.Bullet;
}
public override void AddRecipes()
{
ModRecipe recipe = new ModRecipe(mod);
recipe.AddIngredient(ItemID.DirtBlock, 10);
recipe.AddTile(TileID.WorkBenches);
recipe.SetResult(this);
recipe.AddRecipe();
}
}
}
As you can see, like i said before, it's all basically copied and pasted.