DoubleNegative
Terrarian
How might I make an enemy drop my custom item? I don't know what its item ID is, and I don't know where to find it.
Here's the code for the item:
Here's the code for the item:
Code:
using System;
using Terraria;
using Terraria.ID;
using Terraria.ModLoader;
namespace LihzarhdExpansion.Items
{
public class Meatloaf : ModItem
{
public override void SetDefaults()
{
item.consumable = false;
item.rare = 9;
item.damage = 5000;
item.useStyle = 1;
item.useTurn = false;
item.useAnimation = 17;
item.useTime = 17;
item.healLife = 2000;
item.useSound = 2;
item.name = "Mushroomy Meatloaf";
item.width = 20;
item.height = 20;
item.value = 10000;
item.toolTip = "Eldrazi's favorite!";
item.maxStack = 999;
}
public override void AddRecipes()
{
ModRecipe recipe = new ModRecipe(mod);
recipe.AddIngredient(ItemID.Mushroom);
recipe.SetResult(this);
recipe.AddRecipe();
}
}
}