Error CS1061 when trying to make a bow in tmodloader 1.4 [SOLVED]

Luxarion

Spazmatism
This is my code,
Code:
using Terraria;
using Terraria.ID;
using Terraria.ModLoader;

namespace FunkyMod.Items
{
    public class FunkyWorldEnder : ModItem
    {
        public override void SetStaticDefaults()
        {
            DisplayName.SetDefault("Funky World Ender"); // By default, capitalization in classnames will add spaces to the display name. You can customize the display name here by uncommenting this line.
            Tooltip.SetDefault("Can destroy several worlds at once.");
        }

        public override void SetDefaults()
        {
            Item.damage = 250;
            Item.DamageType = DamageClass.Ranged;
            Item.width = 64;
            Item.height = 128;
            Item.useTime = 10;
            Item.useAnimation = 10;
            Item.useStyle = 5;
            Item.knockBack = 25;
            Item.value = 1000000;
            Item.rare = 3;
            Item.UseSound = SoundID.Item1;
            Item.autoReuse = true;
            Item.shoot = 1;
            Item.useammo = AmmoID.Arrow;
            Item.shootspeed = .5f;
            Items.noMelee = true;
        }

        public override void AddRecipes()
        {
            Recipe recipe = CreateRecipe();
            recipe.AddIngredient(ItemID.LunarBar, 75);
            recipe.AddIngredient(ItemID.SakuraCrystal, 1);
            recipe.AddTile(TileID.LunarCraftingStation);
            recipe.Register();
        }
    }
}
And this is the error message,
Code:
error CS1061: 'Item' does not contain a definition for 'useammo' and no accessible extension method 'useammo' accepting a first argument of type 'Item' could be found (are you missing a using directive or an assembly reference?)
 
Back
Top Bottom