tModLoader Error making recipe for vanilla items.

AxerTheAxe

Skeletron Prime
Hi! I am trying to make a file to make recipes for vanilla items but I am getting an error. I used this guide for the code and help but nothing has worked. Thanks! This is the error:

An error building overload. Make sure you have exactly 1 class extending mod. Found overload.overload, Overload.items.Other.Recipies


Here is my code:
C#:
using Terraria.ID;
using Terraria.ModLoader;

namespace Overload.Items.Other
{
    public class Recipes : Mod
    {
        public override void AddRecipes()
        {
            ModRecipe recipe = new ModRecipe(this);
            recipe.AddIngredient(ItemID.HellstoneBar, 6);
            recipe.AddIngredient(ItemID.Cobweb, 12);
            recipe.SetResult(ItemID.Cascade, 1);
            recipe.AddRecipe();
        }
    }
}
 
Last edited:
the error is " Make sure you have exactly 1 class extending mod. Found overload.overload, Overload.items.Other.Recipies "
That means you have a duplicate Mod class, mainly the one you added called Recipies.
Delete it, and instead put the code of it in the class overload, in the main folder of your mod (thats what overload.overload means)
 
the error is " Make sure you have exactly 1 class extending mod. Found overload.overload, Overload.items.Other.Recipies "
That means you have a duplicate Mod class, mainly the one you added called Recipies.
Delete it, and instead put the code of it in the class overload, in the main folder of your mod (thats what overload.overload means)

Thanks! Works great
 
Back
Top Bottom