using Terraria.ID; using Terraria.ModLoader; namespace ExampleMod.Items.Placeable { public class ExampleBar : ModItem { public override void SetStaticDefaults() { ItemID.Sets.SortingPriorityMaterials[item.type] = 59; // influences the inventory sort order. 59 is PlatinumBar, higher is more valuable. } public override void SetDefaults() { item.width = 20; item.height = 20; item.maxStack = 99; item.value = 750; item.useStyle = 1; item.useTurn = true; item.useAnimation = 15; item.useTime = 10; item.autoReuse = true; item.consumable = true; item.createTile = mod.TileType("ExampleBar"); item.placeStyle = 0; } public override void AddRecipes() { ModRecipe recipe = new ModRecipe(mod); recipe.AddIngredient(mod.ItemType("ExampleOre"), 4); recipe.SetResult(this); recipe.AddRecipe(); } } }