• Journey's End on PC - Find info here and here. Please report bugs and issues for PC 1.4 and 1.4.1 to Re-Logic here.
  • Journey's End on Mobile - Find info here. Report bugs for Mobile 1.4 to DR Studios at this link and give as much detail as possible.
  • 1.4 will bring many changes to the PC version. We strongly advise making plans to back up your worlds and players prior to updating your game. More details here.
  • Console and Switch - The latest news can be found here. To report a bug, please use this link.

tModLoader Error making recipe for vanilla items.

AxerTheAxe

Terrarian
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:

direwolf420

Terrarian
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)
 

AxerTheAxe

Terrarian
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
 
Top Bottom