// Smithing, because the script was getting too long to keep in crafting.

import crafttweaker.api.item.IItemStack;

// Netherite from Knightmetal
// ---------------------------------------------------------------------------------------------------------------------------------------------
smithing.addRecipe("knightmetal_netherite_helm", <item:minecraft:netherite_helmet>, <item:twilightforest:knightmetal_helmet>, <item:minecraft:netherite_ingot>);
smithing.addRecipe("knightmetal_netherite_chest", <item:minecraft:netherite_chestplate>, <item:twilightforest:knightmetal_chestplate>, <item:minecraft:netherite_ingot>);
smithing.addRecipe("knightmetal_netherite_legs", <item:minecraft:netherite_leggings>, <item:twilightforest:knightmetal_leggings>, <item:minecraft:netherite_ingot>);
smithing.addRecipe("knightmetal_netherite_boots", <item:minecraft:netherite_boots>, <item:twilightforest:knightmetal_boots>, <item:minecraft:netherite_ingot>);

smithing.addRecipe("knightmetal_netherite_sword", <item:minecraft:netherite_sword>, <item:twilightforest:knightmetal_sword>, <item:minecraft:netherite_ingot>);
smithing.addRecipe("knightmetal_netherite_pickaxe", <item:minecraft:netherite_pickaxe>, <item:twilightforest:knightmetal_pickaxe>, <item:minecraft:netherite_ingot>);
smithing.addRecipe("knightmetal_netherite_axe", <item:minecraft:netherite_axe>, <item:twilightforest:knightmetal_axe>, <item:minecraft:netherite_ingot>);
// ---------------------------------------------------------------------------------------------------------------------------------------------


// Moonstone
// ---------------------------------------------------------------------------------------------------------------------------------------------
craftingTable.removeRecipe(<item:druidcraft:moonstone_helmet>);
craftingTable.removeRecipe(<item:druidcraft:moonstone_chestplate>);
craftingTable.removeRecipe(<item:druidcraft:moonstone_leggings>);
craftingTable.removeRecipe(<item:druidcraft:moonstone_boots>);

craftingTable.removeRecipe(<item:druidcraft:moonstone_sword>);
craftingTable.removeRecipe(<item:druidcraft:moonstone_shovel>);
craftingTable.removeRecipe(<item:druidcraft:moonstone_pickaxe>);
craftingTable.removeRecipe(<item:druidcraft:moonstone_axe>);
craftingTable.removeRecipe(<item:druidcraft:moonstone_hoe>);
craftingTable.removeRecipe(<item:druidcraft:moonstone_sickle>);

smithing.addRecipe("moonstone_helm", <item:druidcraft:moonstone_helmet>, <item:minecraft:diamond_helmet> | <item:twilightforest:steeleaf_helmet>, <item:druidcraft:moonstone>);
smithing.addRecipe("moonstone_chest", <item:druidcraft:moonstone_chestplate>, <item:minecraft:diamond_chestplate> | <item:twilightforest:steeleaf_chestplate>, <item:druidcraft:moonstone>);
smithing.addRecipe("moonstone_legs", <item:druidcraft:moonstone_leggings>, <item:minecraft:diamond_leggings> | <item:twilightforest:steeleaf_leggings>, <item:druidcraft:moonstone>);
smithing.addRecipe("moonstone_boots", <item:druidcraft:moonstone_boots>, <item:minecraft:diamond_boots> | <item:twilightforest:steeleaf_boots>, <item:druidcraft:moonstone>);

smithing.addRecipe("moonstone_sword", <item:druidcraft:moonstone_sword>, <item:minecraft:diamond_sword> | <item:twilightforest:steeleaf_sword>, <item:druidcraft:moonstone>);
smithing.addRecipe("moonstone_shovel", <item:druidcraft:moonstone_shovel>, <item:minecraft:diamond_shovel> | <item:twilightforest:steeleaf_shovel>, <item:druidcraft:moonstone>);
smithing.addRecipe("moonstone_pickaxe", <item:druidcraft:moonstone_pickaxe>, <item:minecraft:diamond_pickaxe> | <item:twilightforest:steeleaf_pickaxe>, <item:druidcraft:moonstone>);
smithing.addRecipe("moonstone_axe", <item:druidcraft:moonstone_axe>, <item:minecraft:diamond_axe> | <item:twilightforest:steeleaf_axe>, <item:druidcraft:moonstone>);
smithing.addRecipe("moonstone_hoe", <item:druidcraft:moonstone_hoe>, <item:minecraft:diamond_hoe> | <item:twilightforest:steeleaf_hoe>, <item:druidcraft:moonstone>);
smithing.addRecipe("moonstone_sickle", <item:druidcraft:moonstone_sickle>, <item:druidcraft:diamond_sickle>, <item:druidcraft:moonstone>);
// ---------------------------------------------------------------------------------------------------------------------------------------------


// Sapphire
// ---------------------------------------------------------------------------------------------------------------------------------------------
craftingTable.removeRecipe(<item:mysticalworld:sapphire_knife>);
craftingTable.removeRecipe(<item:mysticalworld:sapphire_axe>);
craftingTable.removeRecipe(<item:mysticalworld:sapphire_hoe>);
craftingTable.removeRecipe(<item:mysticalworld:sapphire_pickaxe>);
craftingTable.removeRecipe(<item:mysticalworld:sapphire_shovel>);
craftingTable.removeRecipe(<item:mysticalworld:sapphire_sword>);
craftingTable.removeRecipe(<item:mysticalworld:sapphire_spear>);
craftingTable.removeRecipe(<item:mysticalworld:sapphire_helmet>);
craftingTable.removeRecipe(<item:mysticalworld:sapphire_chestplate>);
craftingTable.removeRecipe(<item:mysticalworld:sapphire_leggings>);
craftingTable.removeRecipe(<item:mysticalworld:sapphire_boots>);


smithing.addRecipe("sapphire_helm", <item:mysticalworld:sapphire_helmet>, <item:minecraft:diamond_helmet> | <item:twilightforest:steeleaf_helmet>, <item:mysticalworld:sapphire>);
smithing.addRecipe("sapphire_chest", <item:mysticalworld:sapphire_chestplate>, <item:minecraft:diamond_chestplate> | <item:twilightforest:steeleaf_chestplate>, <item:mysticalworld:sapphire>);
smithing.addRecipe("sapphire_legs", <item:mysticalworld:sapphire_leggings>, <item:minecraft:diamond_leggings> | <item:twilightforest:steeleaf_leggings>, <item:mysticalworld:sapphire>);
smithing.addRecipe("sapphire_boots", <item:mysticalworld:sapphire_boots>, <item:minecraft:diamond_boots> | <item:twilightforest:steeleaf_boots>, <item:mysticalworld:sapphire>);

smithing.addRecipe("sapphire_sword", <item:mysticalworld:sapphire_sword>, <item:minecraft:diamond_sword> | <item:twilightforest:steeleaf_sword>, <item:mysticalworld:sapphire>);
smithing.addRecipe("sapphire_shovel", <item:mysticalworld:sapphire_shovel>, <item:minecraft:diamond_shovel> | <item:twilightforest:steeleaf_shovel>, <item:mysticalworld:sapphire>);
smithing.addRecipe("sapphire_pickaxe", <item:mysticalworld:sapphire_pickaxe>, <item:minecraft:diamond_pickaxe> | <item:twilightforest:steeleaf_pickaxe>, <item:mysticalworld:sapphire>);
smithing.addRecipe("sapphire_axe", <item:mysticalworld:sapphire_axe>, <item:minecraft:diamond_axe> | <item:twilightforest:steeleaf_axe>, <item:mysticalworld:sapphire>);
smithing.addRecipe("sapphire_hoe", <item:mysticalworld:sapphire_hoe>, <item:minecraft:diamond_hoe> | <item:twilightforest:steeleaf_hoe>, <item:mysticalworld:sapphire>);
smithing.addRecipe("sapphire_knife", <item:mysticalworld:sapphire_knife>, <item:mysticalworld:diamond_knife>, <item:mysticalworld:sapphire>);
smithing.addRecipe("sapphire_spear", <item:mysticalworld:sapphire_spear>, <item:mysticalworld:diamond_spear>, <item:mysticalworld:sapphire>);
// ---------------------------------------------------------------------------------------------------------------------------------------------


// Fiery
// ---------------------------------------------------------------------------------------------------------------------------------------------
// Hooray for Regex! 
craftingTable.removeByRegex("twilightforest:equipment/fiery_.*");

smithing.removeRecipe(<item:twilightforest:fiery_ingot>);
craftingTable.addShapeless("fiery_ingot", <item:twilightforest:fiery_ingot>, 
[<item:minecraft:iron_ingot>, <tag:items:twilightforest:fiery_vial>]);

smithing.addRecipe("fiery_helm", <item:twilightforest:fiery_helmet>, <item:minecraft:diamond_helmet> | <item:twilightforest:knightmetal_helmet>, <item:twilightforest:fiery_ingot>);
smithing.addRecipe("fiery_chest", <item:twilightforest:fiery_chestplate>, <item:minecraft:diamond_chestplate> | <item:twilightforest:knightmetal_chestplate>, <item:twilightforest:fiery_ingot>);
smithing.addRecipe("fiery_legs", <item:twilightforest:fiery_leggings>, <item:minecraft:diamond_leggings> | <item:twilightforest:knightmetal_leggings>, <item:twilightforest:fiery_ingot>);
smithing.addRecipe("fiery_boots", <item:twilightforest:fiery_boots>, <item:minecraft:diamond_boots> | <item:twilightforest:knightmetal_boots>, <item:twilightforest:fiery_ingot>);

smithing.addRecipe("fiery_sword", <item:twilightforest:fiery_sword>, <item:minecraft:diamond_sword> | <item:twilightforest:knightmetal_sword>, <item:twilightforest:fiery_ingot>);
smithing.addRecipe("fiery_pickaxe", <item:twilightforest:fiery_pickaxe>, <item:minecraft:diamond_pickaxe> | <item:twilightforest:knightmetal_pickaxe>, <item:twilightforest:fiery_ingot>);
// ---------------------------------------------------------------------------------------------------------------------------------------------


// Yeti Fur
// ---------------------------------------------------------------------------------------------------------------------------------------------
// Hooray for Regex! 
craftingTable.removeByRegex("twilightforest:equipment/yeti_.*");

smithing.addRecipe("yeti_helm", <item:twilightforest:yeti_helmet>, <item:minecraft:diamond_helmet> | <item:twilightforest:arctic_helmet>, <item:twilightforest:alpha_fur>);
smithing.addRecipe("yeti_chest", <item:twilightforest:yeti_chestplate>, <item:minecraft:diamond_chestplate> | <item:twilightforest:arctic_chestplate>, <item:twilightforest:alpha_fur>);
smithing.addRecipe("yeti_legs", <item:twilightforest:yeti_leggings>, <item:minecraft:diamond_leggings> | <item:twilightforest:arctic_leggings>, <item:twilightforest:alpha_fur>);
smithing.addRecipe("yeti_boots", <item:twilightforest:yeti_boots>, <item:minecraft:diamond_boots> | <item:twilightforest:arctic_boots>, <item:twilightforest:alpha_fur>);
// ---------------------------------------------------------------------------------------------------------------------------------------------













