Aiden L
Official Terrarian
So, after attempting to make a weapon mod, whenever I click "Build" it says: Errow CS1026, )expected. I have no idea what this means, and I don't see a solution anywhere on the internet. I',m attempting to make a bow.Keep in mind, this is my first time coding. The code is:
using Terraria.ID;
using Terraria.ModLoader;
namespace fill.Items
{
public class blockfiller : ModItem
{
public override void SetStaticDefaults()
{
DisplayName.SetDefault("Demon Blaze Bow");
Tooltip.SetDefault("Forged from the Depths of the Corruption, With the Help of Demons. However it was Made, this Weapon Rocks!");
}
public override void SetDefaults()
{
item.damage = 42;
item.ranged = true;
item.width = 40;
item.height = 40;
item.useTime = 5;
item.useAnimation = 10;
item.useStyle = 1;
item.knockBack = 6;
item.value = 10000;
item.rare =3;
item.UseSound = SoundID.Item5;
item.autoReuse = true;
}
public override void AddRecipes()
{
ModRecipe recipe = new ModRecipe(mod);
recipe.AddIngredient(ItemID.44, 1);
recipe.AddIngredient(ItemID.120, 1); recipe.AddIngredient(ItemID.182, 10); recipe.AddIngredient(ItemID.29, 1); recipe.AddTile(TileID.Anvils);
recipe.SetResult(this);
recipe.AddRecipe();
}
}
}
/*
*My first bow
*/
using Terraria.ID;
using Terraria.ModLoader;
namespace fill.Items
{
public class blockfiller : ModItem
{
public override void SetStaticDefaults()
{
DisplayName.SetDefault("Demon Blaze Bow");
Tooltip.SetDefault("Forged from the Depths of the Corruption, With the Help of Demons. However it was Made, this Weapon Rocks!");
}
public override void SetDefaults()
{
item.damage = 42;
item.ranged = true;
item.width = 40;
item.height = 40;
item.useTime = 5;
item.useAnimation = 10;
item.useStyle = 1;
item.knockBack = 6;
item.value = 10000;
item.rare =3;
item.UseSound = SoundID.Item5;
item.autoReuse = true;
}
public override void AddRecipes()
{
ModRecipe recipe = new ModRecipe(mod);
recipe.AddIngredient(ItemID.44, 1);
recipe.AddIngredient(ItemID.120, 1); recipe.AddIngredient(ItemID.182, 10); recipe.AddIngredient(ItemID.29, 1); recipe.AddTile(TileID.Anvils);
recipe.SetResult(this);
recipe.AddRecipe();
}
}
}
/*
*My first bow
*/