I am writing code to make the slime staff craft able with 25 gel and 30 wood, but for some reason I keep getting errors no matter what I change. Here is the code currently,
When I go to build and reload the mod it says that “Sequence contains more than one matching element” I got this from example mod, just tweaking things for the recipe and for my mods Namespace. I have no Idea what’s going on, and I have tried basically everything. If you need a list of the full error I can post it.
C#:
using Terraria.ID;
using Terraria.ModLoader;
namespace Xtreme
{
public class XTreme : Mod
{
public ModRecipe Recipe { get; private set; }
public override void AddRecipes()
{
ModRecipe recipe = new ModRecipe(this);
recipe.AddIngredient(ItemID.Gel, 20);
recipe.AddIngredient(ItemID.Wood, 15);
recipe.AddTile(TileID.WorkBenches);
recipe.SetResult(ItemID.SlimeStaff, 1);
recipe.AddRecipe();
}
}
}
When I go to build and reload the mod it says that “Sequence contains more than one matching element” I got this from example mod, just tweaking things for the recipe and for my mods Namespace. I have no Idea what’s going on, and I have tried basically everything. If you need a list of the full error I can post it.
Last edited: