Marc40k
Terrarian
Sorry. I feel like an idiot. The recipe is not on the original post, because it is currently in my source version for 2.0.0, which I haven't released.
Also, I just added 12 Hallowed bars to the fiberglass recipe.
no problem
Sorry. I feel like an idiot. The recipe is not on the original post, because it is currently in my source version for 2.0.0, which I haven't released.
Also, I just added 12 Hallowed bars to the fiberglass recipe.
using System;
using Microsoft.Xna.Framework;
using Terraria;
using Terraria.ID;
using Terraria.ModLoader;
namespace Craftingrecipes
{
public class Craftingrecipes : Mod
{
public override void SetModInfo(out string name, ref ModProperties properties)
{
name = "Craftingrecipes";
properties.Autoload = true;
}
public override void Load()
{
}
public override void AddRecipes(Mod mod)
{
ModRecipe recipe= new ModRecipe(mod);
recipe.AddIngredient(null, "ItemId.StoneBlock", 10);
recipe.AddIngredient(null, "ItemId.Silk", 10);
recipe.AddIngredient(null, "ItemId.Wood", 10);
recipe.SetResult("ItemId.Aglet", 1);
recip.Addrecipe();
}
}
}
You also need a build.txt, which has all the mod info, and I suggest having it in two separate files ( recipehelper.cs and 'whatever your mod name is'.cs)Here is my code could you tell me where I went wrong. I am trying to build the mod in just one file.
went wrong.Code:using System; using Microsoft.Xna.Framework; using Terraria; using Terraria.ID; using Terraria.ModLoader; namespace Craftingrecipes { public class Craftingrecipes : Mod { public override void SetModInfo(out string name, ref ModProperties properties) { name = "Craftingrecipes"; properties.Autoload = true; } public override void Load() { } public override void AddRecipes(Mod mod) { ModRecipe recipe= new ModRecipe(mod); recipe.AddIngredient(null, "ItemId.StoneBlock", 10); recipe.AddIngredient(null, "ItemId.Silk", 10); recipe.AddIngredient(null, "ItemId.Wood", 10); recipe.SetResult("ItemId.Aglet", 1); recip.Addrecipe(); } } }
author = eatintoast
version = v.10
displayName = craftingrecipes
using System;
using Microsoft.Xna.Framework;
using Terraria;
using Terraria.ID;
using Terraria.ModLoader;
namespace Craftingrecipes
{
public class RecipeHelper
{
public override void AddRecipes(Mod mod)
{
ModRecipe recipe= new ModRecipe(mod);
recipe.AddIngredient(ItemId.StoneBlock, 10);
recipe.AddIngredient(ItemId.Silk, 10);
recipe.AddIngredient(ItemId.Wood, 10);
recipe.SetResult(ItemId.Aglet);
recip.Addrecipe();
}
}
}
using System;
using Microsoft.Xna.Framework;
using Terraria;
using Terraria.ID;
using Terraria.ModLoader;
namespace Craftingrecipes
{
public class Craftingrecipes : Mod
{
public override void SetModInfo(out string name, ref ModProperties properties)
{
name = "Craftingrecipes";
properties.Autoload = true;
properties.AutoloadGores = true;
properties.AutoloadSounds = true;
}
public override void Load()
{
}
public override void AddRecipes()
{
}
}
}
Your craftingrecipes.cs should look like:I made the changes that you suggested but I keep getting a log that says their is no mother to override in the Terraria.Modloader.Mod
build.txt
Code:author = eatintoast version = v.10 displayName = craftingrecipes
recipehelper.cs
Code:using System; using Microsoft.Xna.Framework; using Terraria; using Terraria.ID; using Terraria.ModLoader; namespace Craftingrecipes { public class RecipeHelper { public override void AddRecipes(Mod mod) { ModRecipe recipe= new ModRecipe(mod); recipe.AddIngredient(ItemId.StoneBlock, 10); recipe.AddIngredient(ItemId.Silk, 10); recipe.AddIngredient(ItemId.Wood, 10); recipe.SetResult(ItemId.Aglet); recip.Addrecipe(); } } }
craftingrecipes.cs
Code:using System; using Microsoft.Xna.Framework; using Terraria; using Terraria.ID; using Terraria.ModLoader; namespace Craftingrecipes { public class Craftingrecipes : Mod { public override void SetModInfo(out string name, ref ModProperties properties) { name = "Craftingrecipes"; properties.Autoload = true; properties.AutoloadGores = true; properties.AutoloadSounds = true; } public override void Load() { } public override void AddRecipes() { } } }
using System;
using Microsoft.Xna.Framework;
using Terraria;
using Terraria.ID;
using Terraria.ModLoader;
namespace Craftingrecipes {
public class Craftingrecipes : Mod
{
public override void SetModInfo(out string name, ref ModProperties properties)
{
name = "Craftingrecipes";
properties.Autoload = true;
}
public override void AddRecipes()
{
RecipeHelper.AddRecipes(this);
}
}}
c:\Users\~\Documents\My Games\Terraria\ModLoader\Mod Sources\Craftingrecipes\recipehelper.cs(11,24) : error CS0115: 'Craftingrecipes.RecipeHelper.AddRecipes(Terraria.ModLoader.Mod)': no suitable method found to override
I confess that I don't know. The coordinatesIm still getting the same log when compiling
Code:c:\Users\~\Documents\My Games\Terraria\ModLoader\Mod Sources\Craftingrecipes\recipehelper.cs(11,24) : error CS0115: 'Craftingrecipes.RecipeHelper.AddRecipes(Terraria.ModLoader.Mod)': no suitable method found to override
I'll do that tonight.Update, plz, for tModlOader 0.7
The problem is that I am not good with repetitive tasks, and I get bored easily. If enough people show support for the mod, I can work on it after 28th Jan (I have stuff until then).no more updates?
just starting some new cooment to bring some attention on the mod...The problem is that I am not good with repetitive tasks, and I get bored easily. If enough people show support for the mod, I can work on it after 28th Jan (I have stuff until then).
How do i isntall it when i put the file into the mod folder it doesent show up.
do you know when it will possible to be updated to tmodloader 0.7? because this mod looks awesomeNot for tModLoader 0.7