sandro man
Official Terrarian
Sorry to disturb, I created a simple object by copying the .cs file from the Example Mod and changing the namespace and name.
The mod is created but when I play the object is not there, Thanks in advance
The mod is created but when I play the object is not there, Thanks in advance
using System;
using Terraria;
using Terraria.ID;
using Terraria.ModLoader;
namespace MiaPrimaMod.Items
{
public class Item1 : ModItem
{
public override void SetDefaults()
{
item.name = "item";
item.width = 20;
item.height = 20;
item.maxStack = 999;
AddTooltip(":.)");
item.value = 100;
item.rare = 1;
}
public override void AddRecipes()
{
ModRecipe recipe = new ModRecipe(mod);
recipe.AddIngredient(ItemID.DirtBlock);
recipe.SetResult(this, 999);
recipe.AddRecipe();
}
}
}
using Terraria;
using Terraria.ID;
using Terraria.ModLoader;
namespace MiaPrimaMod.Items
{
public class Item1 : ModItem
{
public override void SetDefaults()
{
item.name = "item";
item.width = 20;
item.height = 20;
item.maxStack = 999;
AddTooltip(":.)");
item.value = 100;
item.rare = 1;
}
public override void AddRecipes()
{
ModRecipe recipe = new ModRecipe(mod);
recipe.AddIngredient(ItemID.DirtBlock);
recipe.SetResult(this, 999);
recipe.AddRecipe();
}
}
}