//合成完整示例
public override void AddRecipes()
{
if (ModLoader.TryGetMod("eventhorizon", out Mod eventhorizon) &&
eventhorizon.TryFind<ModItem>("MalachiteBullet", out ModItem MalachiteBullet) &&
eventhorizon.TryFind<ModItem>("Malakill", out ModItem Malakill) &&
eventhorizon.TryFind<ModItem>("Malachite", out ModItem Malachite))
{
Recipe recipe = CreateRecipe();
recipe.AddIngredient(Malakill.Type, 1);
recipe.AddIngredient(324);//非法枪械部件
recipe.AddIngredient(ModContent.ItemType<NirvanaCore>(), 1);
recipe.AddIngredient(Malachite.Type, 10);
recipe.AddIngredient(MalachiteBullet.Type, 999);
recipe.AddTile(133);//新矿熔炉
//最好改为ItemID.xxx
//https://terraria.wiki.gg/zh/wiki/物品_ID
recipe.Register();
}
}