TheTrueBrawler
Plantera
Added it and it still isn't working.You have to end that block with recipe.AddRecipe();
Added it and it still isn't working.You have to end that block with recipe.AddRecipe();
Let's see your code. Also, did you save the file?Added it and it still isn't working.
Here is a Link to a Download if you would like to tinker with it in any way, shape, or form.Let's see your code. Also, did you save the file?
I assume by "doesn't work", that you mean the mod doesn't give any errors, but the recipe won't show up.Here is a Link to a Download if you would like to tinker with it in any way, shape, or form.
recipe = new ModRecipe(mod);
recipe.AddIngredient(ItemID.DirtBlock, 1);
recipe.SetResult(this);
recipe.AddRecipe();
using Terraria;
using Terraria.ID;
using Terraria.ModLoader;
namespace ExampleMod.Items.Armor
{
[AutoloadEquip(EquipType.Body)]
public class EnchantedGoldBreastplate : ModItem
{
public override void SetStaticDefaults()
{
base.SetStaticDefaults();
DisplayName.SetDefault("EnchantedGoldBreastplate");
Tooltip.SetDefault("This Armor Plate is made from souls and gold."
+ "\nImmunity to 'ManaSickness!'");
}
public override void SetDefaults()
{
item.width = 18;
item.height = 18;
item.value = 10000;
item.rare = 2;
item.defense = 11;
}
public override void UpdateEquip(Player player)
{
player.buffImmune[BuffID.ManaSickness] = true;
}
public override void AddRecipes()
{
ModRecipe recipe = new ModRecipe(mod);
recipe.AddIngredient(ItemID.83, 1);
recipe.AddIngredient(ItemID.521, 7);
recipe.AddTile(null, "Anvil");
recipe.SetResult(this);
recipe.AddRecipe();
}
}
}
Read https://github.com/blushiemagic/tModLoader/wiki/Basic-Recipesi am trying to make a armor set but for some reason it keeps on saying
\ModLoader\Mod Sources\ExampleMod\Items\Armor\EnchantedGoldBreastplate.cs(35,31) : error CS1026: ) expected
this is my code
Code:using Terraria; using Terraria.ID; using Terraria.ModLoader; namespace ExampleMod.Items.Armor { [AutoloadEquip(EquipType.Body)] public class EnchantedGoldBreastplate : ModItem { public override void SetStaticDefaults() { base.SetStaticDefaults(); DisplayName.SetDefault("EnchantedGoldBreastplate"); Tooltip.SetDefault("This Armor Plate is made from souls and gold." + "\nImmunity to 'ManaSickness!'"); } public override void SetDefaults() { item.width = 18; item.height = 18; item.value = 10000; item.rare = 2; item.defense = 11; } public override void UpdateEquip(Player player) { player.buffImmune[BuffID.ManaSickness] = true; } public override void AddRecipes() { ModRecipe recipe = new ModRecipe(mod); recipe.AddIngredient(ItemID.83, 1); recipe.AddIngredient(ItemID.521, 7); recipe.AddTile(null, "Anvil"); recipe.SetResult(this); recipe.AddRecipe(); } } }