import crafttweaker.api.item.IItemStack;
import crafttweaker.api.item.IIngredient;

// Tags

<tag:items:forge:dragonscale_ice_block>.add(<item:iceandfire:dragonscale_blue>,<item:iceandfire:dragonscale_white>,<item:iceandfire:dragonscale_sapphire>,<item:iceandfire:dragonscale_silver>);

<tag:items:forge:dragonscale_fire_block>.add(<item:iceandfire:dragonscale_red>,<item:iceandfire:dragonscale_green>,<item:iceandfire:dragonscale_bronze>,<item:iceandfire:dragonscale_gray>);

<tag:items:forge:dragonscale_lightning_block>.add(<item:iceandfire:dragonscale_electric>,<item:iceandfire:dragonscale_amythest>,<item:iceandfire:dragonscale_black>);

// Quadrilium

mods.iceandfire.DragonForge.addRecipe("fire", <item:powder_power:ingot_quadrilium>, <item:powder_power:ingot_trilium>, <item:powder_power:blend_quadrilium>);
mods.iceandfire.DragonForge.addRecipe("ice", <item:powder_power:ingot_quadrilium>, <item:powder_power:ingot_trilium>, <item:powder_power:blend_quadrilium>);
mods.iceandfire.DragonForge.addRecipe("lightning", <item:powder_power:ingot_quadrilium>, <item:powder_power:ingot_trilium>, <item:powder_power:blend_quadrilium>);

// Dragonsteel

mods.iceandfire.DragonForge.removeFireRecipe(<item:iceandfire:dragonsteel_fire_ingot>);
mods.iceandfire.DragonForge.removeIceRecipe(<item:iceandfire:dragonsteel_ice_ingot>);
mods.iceandfire.DragonForge.removeLightningRecipe(<item:iceandfire:dragonsteel_lightning_ingot>);

mods.iceandfire.DragonForge.addRecipe("fire", <item:iceandfire:dragonsteel_fire_ingot>, <item:powder_power:ingot_quadrilium>, <item:iceandfire:fire_dragon_blood>);
mods.iceandfire.DragonForge.addRecipe("ice", <item:iceandfire:dragonsteel_ice_ingot>, <item:powder_power:ingot_quadrilium>, <item:iceandfire:ice_dragon_blood>);
mods.iceandfire.DragonForge.addRecipe("lightning", <item:iceandfire:dragonsteel_lightning_ingot>, <item:powder_power:ingot_quadrilium>, <item:iceandfire:lightning_dragon_blood>);

// Fire Forge

craftingTable.removeRecipe(<item:iceandfire:dragonforge_fire_core_disabled>);
craftingTable.removeRecipe(<item:iceandfire:dragonforge_fire_brick>);

craftingTable.addShaped("fire_core", <item:iceandfire:dragonforge_fire_core_disabled>, [
    [<item:iceandfire:dragonforge_fire_brick>, <item:iceandfire:dragonforge_fire_brick>, <item:iceandfire:dragonforge_fire_brick>], 
    [<item:iceandfire:dragonforge_fire_brick>, <tag:items:forge:fire_dragon_eggs>, <item:iceandfire:dragonforge_fire_brick>],
    [<item:iceandfire:dragonforge_fire_brick>,<item:iceandfire:dragonforge_fire_brick>,<item:iceandfire:dragonforge_fire_brick>]
    ]);


craftingTable.addShaped("fire_bricks", <item:iceandfire:dragonforge_fire_brick> * 4, [
    [<tag:items:forge:dragonscale_fire_block>, <item:minecraft:stone_bricks>, <tag:items:forge:dragonscale_fire_block>], 
    [<item:minecraft:stone_bricks>, <item:iceandfire:fire_dragon_heart>, <item:minecraft:stone_bricks>],
    [<tag:items:forge:dragonscale_fire_block>,<item:minecraft:stone_bricks>,<tag:items:forge:dragonscale_fire_block>]
    ]);

// Ice Forge

craftingTable.removeRecipe(<item:iceandfire:dragonforge_ice_core_disabled>);
craftingTable.removeRecipe(<item:iceandfire:dragonforge_ice_brick>);

craftingTable.addShaped("ice_core", <item:iceandfire:dragonforge_ice_core_disabled>, [
    [<item:iceandfire:dragonforge_ice_brick>, <item:iceandfire:dragonforge_ice_brick>, <item:iceandfire:dragonforge_ice_brick>], 
    [<item:iceandfire:dragonforge_ice_brick>, <tag:items:forge:ice_dragon_eggs>, <item:iceandfire:dragonforge_ice_brick>],
    [<item:iceandfire:dragonforge_ice_brick>,<item:iceandfire:dragonforge_ice_brick>,<item:iceandfire:dragonforge_ice_brick>]
    ]);


craftingTable.addShaped("ice_bricks", <item:iceandfire:dragonforge_ice_brick> * 4, [
    [<tag:items:forge:dragonscale_ice_block>, <item:minecraft:stone_bricks>, <tag:items:forge:dragonscale_ice_block>], 
    [<item:minecraft:stone_bricks>, <item:iceandfire:ice_dragon_heart>, <item:minecraft:stone_bricks>],
    [<tag:items:forge:dragonscale_ice_block>,<item:minecraft:stone_bricks>,<tag:items:forge:dragonscale_ice_block>]
    ]);

// Lightning Forge

craftingTable.removeRecipe(<item:iceandfire:dragonforge_lightning_core_disabled>);
craftingTable.removeRecipe(<item:iceandfire:dragonforge_lightning_brick>);

craftingTable.addShaped("lightning_core", <item:iceandfire:dragonforge_lightning_core_disabled>, [
    [<item:iceandfire:dragonforge_lightning_brick>, <item:iceandfire:dragonforge_lightning_brick>, <item:iceandfire:dragonforge_lightning_brick>], 
    [<item:iceandfire:dragonforge_lightning_brick>, <tag:items:forge:lightning_dragon_eggs>, <item:iceandfire:dragonforge_lightning_brick>],
    [<item:iceandfire:dragonforge_lightning_brick>,<item:iceandfire:dragonforge_lightning_brick>,<item:iceandfire:dragonforge_lightning_brick>]
    ]);

craftingTable.addShaped("lightning_bricks", <item:iceandfire:dragonforge_lightning_brick> * 4, [
    [<tag:items:forge:dragonscale_fire_block>, <item:minecraft:stone_bricks>, <tag:items:forge:dragonscale_fire_block>], 
    [<item:minecraft:stone_bricks>, <item:iceandfire:fire_dragon_heart>, <item:minecraft:stone_bricks>],
    [<tag:items:forge:dragonscale_fire_block>,<item:minecraft:stone_bricks>,<tag:items:forge:dragonscale_fire_block>]
    ]);
