using Terraria.ID;
using Terraria.ModLoader;
namespace Acceptance.Items
{
public class Sumarbrander : ModItem
{
public override void SetStaticDefaults()
{
DisplayName.SetDefault("Sumarbrander");
Tooltip.SetDefault("A little talktive...");
}
public override void SetDefaults()
{
item.damage = 59;
item.melee = true;
item.width = 1;
item.height = 1;
item.useTime = 18;
item.useAnimation = 18;
item.useStyle = 1;
item.knockBack = 6;
item.value = 10001;
item.rare = 3;
item.UseSound = SoundID.Item4;
item.autoReuse = true;
}
public override void AddRecipes();
ModRecipe recipe = new ModRecipe(mod);
recipe.AddIngredient(ItemID.HellstoneBar, 10);
recipe.AddTile(TileID.WorkBenches);
recipe.SetResult(this);
recipe.AddRecipe();
}
}
}
usually you'd want to include the error message.Code:using Terraria.ID; using Terraria.ModLoader; namespace Acceptance.Items { public class Sumarbrander : ModItem { public override void SetStaticDefaults() { DisplayName.SetDefault("Sumarbrander"); Tooltip.SetDefault("A little talktive..."); } public override void SetDefaults() { item.damage = 59; item.melee = true; item.width = 1; item.height = 1; item.useTime = 18; item.useAnimation = 18; item.useStyle = 1; item.knockBack = 6; item.value = 10001; item.rare = 3; item.UseSound = SoundID.Item4; item.autoReuse = true; } public override void AddRecipes(); ModRecipe recipe = new ModRecipe(mod); recipe.AddIngredient(ItemID.HellstoneBar, 10); recipe.AddTile(TileID.WorkBenches); recipe.SetResult(this); recipe.AddRecipe(); } } }
so... does anyone know what is wrong with this? im making a custom item called Sumarbrander and cant figure out whats wrong.
looks like you aren't on windows: Standalone - [1.3] tModLoader - A Modding APISo ummm...
nevermind i figured it outDid you verify that the variable exists? Like, you checked if item.damage is declared somewhere in the code
If you've had an installation prior to 1.4, it might not appear after updating. You can either re-install tModLoader manually or download it from Steam.There is no Mod Sources folder OR BUTTON ON THE TITLE SCREEN??? WHAT HAPPENED TO IT???
No. Only C# works.Question, does C++ work with tModloader
Oh well, thanks though!No. Only C# works.