using ExampleMod.Projectiles; using Terraria; using Terraria.ID; using Terraria.ModLoader; namespace ExampleMod.Items.Weapons { public class ExampleJavelin : ModItem { public override void SetDefaults() { // Alter any of these values as you see fit, but you should probably keep useStyle on 1, as well as the noUseGraphic and noMelee bools item.shootSpeed = 10f; item.damage = 45; item.knockBack = 5f; item.useStyle = 1; item.useAnimation = 25; item.useTime = 25; item.width = 30; item.height = 30; item.maxStack = 999; item.rare = 5; item.consumable = true; item.noUseGraphic = true; item.noMelee = true; item.autoReuse = true; item.thrown = true; item.UseSound = SoundID.Item1; item.value = Item.sellPrice(silver: 5); item.shoot = mod.ProjectileType(); } } }