import crafttweaker.api.item.IItemStack;
import crafttweaker.api.item.IIngredient;
import crafttweaker.api.FurnaceManager;
import crafttweaker.api.BlastFurnaceManager;
import mods.jei.JEI;

mods.jei.JEI.hideItem(<item:powder_power:token_fire_resistance>);
mods.jei.JEI.hideItem(<item:bountifulbaubles:gloves_digging_iron>);
mods.jei.JEI.hideItem(<item:bountifulbaubles:gloves_digging_diamond>);
mods.jei.JEI.hideItem(<item:minecraft:spawner>);
mods.jei.JEI.hideItem(<item:spawnermod:spawner_key>);
mods.jei.JEI.hideItem(<item:scalinghealth:cursed_heart>);
mods.jei.JEI.hideItem(<item:scalinghealth:enchanted_heart>);
mods.jei.JEI.hideItem(<item:scalinghealth:chance_heart>);
mods.jei.JEI.hideItem(<item:powder_power:token_speed>);

craftingTable.removeRecipe(<item:minecraft:name_tag>);
craftingTable.removeRecipe(<item:powder_power:token_dragon>);
craftingTable.removeRecipe(<item:powder_power:token_night_vision>);
craftingTable.removeRecipe(<item:powder_power:token_resistance>);
craftingTable.removeRecipe(<item:powder_power:token_affliction>);
craftingTable.removeRecipe(<item:powder_power:token_absorption>);
craftingTable.removeRecipe(<item:powder_power:token_health>);
craftingTable.removeRecipe(<item:powder_power:token_strength>);
craftingTable.removeRecipe(<item:powder_power:token_curing>);
craftingTable.removeRecipe(<item:bountifulbaubles:gloves_digging_iron>);
craftingTable.removeRecipe(<item:bountifulbaubles:gloves_digging_diamond>);
craftingTable.removeRecipe(<item:spawnermod:spawner_key>);
craftingTable.removeRecipe(<item:minecraft:crying_obsidian>);
craftingTable.removeRecipe(<item:fakeblocks:fakeblock>);
craftingTable.removeRecipe(<item:appletreesrev:gapple_sapling>);
craftingTable.removeRecipe(<item:xplosives:fireblast_tnt>);
craftingTable.removeRecipe(<item:xplosives:incendiary_bomb>);
craftingTable.removeRecipe(<item:xplosives:hydrogen_bomb>);
craftingTable.removeRecipe(<item:craftabledeeds:empty_deed>);
craftingTable.removeRecipe(<item:craftabledeeds:deed_pedestal>);
craftingTable.removeRecipe(<item:bountifulbaubles:broken_heart>);
craftingTable.removeRecipe(<item:powder_power:token_speed>);
craftingTable.removeRecipe(<item:powder_power:token_dolphin>);
craftingTable.removeRecipe(<item:powder_power:token_no_fall>);
craftingTable.removeRecipe(<item:bountifulbaubles:lucky_horseshoe>);

craftingTable.addShapeless("leather_helmet_to_leather", <item:minecraft:leather> * 1, [<item:minecraft:leather_helmet>]);
craftingTable.addShapeless("leather_chestplate_to_leather", <item:minecraft:leather> * 3, [<item:minecraft:leather_chestplate>]);
craftingTable.addShapeless("leather_leggings_to_leather", <item:minecraft:leather> * 2, [<item:minecraft:leather_leggings>]);
craftingTable.addShapeless("leather_boots_to_leather", <item:minecraft:leather> * 2, [<item:minecraft:leather_boots>]);

craftingTable.addShaped("enchanted_notch_apple", <item:minecraft:enchanted_golden_apple>, [
    [<item:minecraft:gold_block>, <item:minecraft:diamond>, <item:minecraft:gold_block>],
    [<item:minecraft:experience_bottle>, <item:minecraft:golden_apple>, <item:minecraft:experience_bottle>],
    [<item:minecraft:gold_block>, <item:minecraft:diamond>, <item:minecraft:gold_block>]
]);

craftingTable.addShaped("name_tag", <item:minecraft:name_tag>, [
    [<item:minecraft:air>, <item:minecraft:air>, <item:minecraft:iron_ingot>],
    [<item:minecraft:air>, <item:minecraft:iron_block>, <item:minecraft:air>],
    [<item:minecraft:iron_block>, <item:minecraft:air>, <item:minecraft:air>]
]);

craftingTable.addShaped("saddle", <item:minecraft:saddle>, [
    [<item:minecraft:leather>, <item:minecraft:leather>, <item:minecraft:leather>],
    [<item:minecraft:string>, <item:minecraft:air>, <item:minecraft:string>],
    [<item:minecraft:tripwire_hook>, <item:minecraft:air>, <item:minecraft:tripwire_hook>]
]);

craftingTable.addShaped("token_dragon_egg", <item:powder_power:token_dragon>, [
    [<item:powder_power:blend_quadrilium>, <item:minecraft:dragon_head>, <item:powder_power:blend_quadrilium>],
    [<item:minecraft:elytra>, <tag:items:forge:lightning_dragon_eggs>, <item:minecraft:elytra>],
    [<item:powder_power:blend_quadrilium>, <item:minecraft:dragon_head>, <item:powder_power:blend_quadrilium>]
]);

craftingTable.addShaped("night_vision_token", <item:powder_power:token_night_vision>, [
    [<item:wyrmroost:jewelled_apple>, <item:powder_power:blend_redium>, <item:wyrmroost:jewelled_apple>],
    [<item:powder_power:blend_redium>, <item:wyrmroost:jewelled_apple>, <item:powder_power:blend_redium>],
    [<item:wyrmroost:jewelled_apple>, <item:powder_power:blend_redium>, <item:wyrmroost:jewelled_apple>]
]);

craftingTable.addShaped("resistance_token", <item:powder_power:token_resistance>, [
    [<item:powder_power:sword_trilium>, <item:powder_power:blend_trilium>, <item:powder_power:sword_trilium>],
    [<item:powder_power:blend_trilium>, <item:powder_power:sword_trilium>, <item:powder_power:blend_trilium>],
    [<item:powder_power:sword_trilium>, <item:powder_power:blend_trilium>, <item:powder_power:sword_trilium>]
]);

craftingTable.addShaped("strength_token_netherite", <item:powder_power:token_strength>, [
    [<item:minecraft:diamond_block>, <item:powder_power:blend_trilium>, <item:minecraft:diamond_block>],
    [<item:powder_power:blend_trilium>, <item:minecraft:diamond_sword>, <item:powder_power:blend_trilium>],
    [<item:minecraft:diamond_block>, <item:powder_power:blend_trilium>, <item:minecraft:diamond_block>]
]);

craftingTable.addShaped("strength_token_diamond", <item:powder_power:token_strength>, [
    [<item:minecraft:netherite_ingot>, <item:powder_power:blend_trilium>, <item:minecraft:netherite_ingot>],
    [<item:powder_power:blend_trilium>, <item:minecraft:netherite_sword>, <item:powder_power:blend_trilium>],
    [<item:minecraft:netherite_ingot>, <item:powder_power:blend_trilium>, <item:minecraft:netherite_ingot>]
]);

craftingTable.addShaped("affliction_token", <item:powder_power:token_affliction>, [
    [<item:minecraft:fermented_spider_eye>, <item:powder_power:blend_trilium>, <item:minecraft:nether_wart>],
    [<item:powder_power:blend_trilium>, <item:minecraft:enchanted_golden_apple>, <item:powder_power:blend_trilium>],
    [<item:minecraft:gunpowder>, <item:powder_power:blend_trilium>, <item:minecraft:glistering_melon_slice>]
]);

craftingTable.addShaped("absorption_token", <item:powder_power:token_absorption>, [
    [<item:minecraft:enchanted_golden_apple>, <item:powder_power:blend_trilium>, <item:minecraft:enchanted_golden_apple>],
    [<item:powder_power:blend_trilium>, <item:minecraft:totem_of_undying>, <item:powder_power:blend_trilium>],
    [<item:minecraft:enchanted_golden_apple>, <item:powder_power:blend_trilium>, <item:minecraft:enchanted_golden_apple>]
]);

craftingTable.addShaped("health_token", <item:powder_power:token_health>, [
    [<item:minecraft:enchanted_golden_apple>, <item:powder_power:blend_quadrilium>, <item:minecraft:enchanted_golden_apple>],
    [<item:powder_power:blend_quadrilium>, <item:powder_power:token_absorption>, <item:powder_power:blend_quadrilium>],
    [<item:minecraft:enchanted_golden_apple>, <item:powder_power:blend_quadrilium>, <item:minecraft:enchanted_golden_apple>]
]);

craftingTable.addShaped("curing_token", <item:powder_power:token_curing>, [
    [<item:minecraft:enchanted_golden_apple>, <item:powder_power:token_health>, <item:minecraft:enchanted_golden_apple>],
    [<item:powder_power:blend_quadrilium>, <item:minecraft:milk_bucket>, <item:powder_power:blend_quadrilium>],
    [<item:powder_power:token_greater_absorption>, <item:powder_power:blend_quadrilium>, <item:powder_power:token_greater_absorption>]
]);

craftingTable.addShaped("dolphin_token", <item:powder_power:token_dolphin>, [
    [<item:minecraft:air>, <item:powder_power:token_haste>, <item:minecraft:air>],
    [<item:powder_power:blend_gemium>, <item:minecraft:tropical_fish>, <item:powder_power:blend_gemium>],
    [<item:minecraft:air>, <item:powder_power:token_breathing>, <item:minecraft:air>]
]);

craftingTable.addShaped("no_fall_token", <item:powder_power:token_no_fall>, [
    [<item:minecraft:potion>.withTag({Potion: "minecraft:strong_healing"}), <item:powder_power:blend_redium>, <item:minecraft:potion>.withTag({Potion: "minecraft:strong_strength"})],
    [<item:powder_power:blend_redium>, <item:minecraft:netherite_boots>, <item:powder_power:blend_redium>],
    [<item:minecraft:potion>.withTag({Potion: "quark:strong_resistance"}), <item:powder_power:blend_redium>, <item:minecraft:potion>.withTag({Potion: "minecraft:long_leaping"})]
]);

craftingTable.addShaped("no_fall_bauble", <item:bountifulbaubles:lucky_horseshoe>, [
    [<item:minecraft:potion>.withTag({Potion: "minecraft:strong_healing"}), <item:powder_power:blend_redium>, <item:minecraft:potion>.withTag({Potion: "minecraft:strong_strength"})],
    [<item:powder_power:blend_redium>, <item:bountifulbaubles:resplendent_token>, <item:powder_power:blend_redium>],
    [<item:minecraft:potion>.withTag({Potion: "quark:strong_resistance"}), <item:powder_power:blend_redium>, <item:minecraft:potion>.withTag({Potion: "minecraft:long_leaping"})]
]);

craftingTable.addShaped("fakeblocks", <item:fakeblocks:fakeblock>, [
    [<item:minecraft:diamond>, <item:minecraft:stick>, <item:minecraft:diamond>],
    [<item:minecraft:stick>, <item:minecraft:iron_ingot>, <item:minecraft:stick>],
    [<item:minecraft:diamond>, <item:minecraft:stick>, <item:minecraft:diamond>]
]);

craftingTable.addShaped("golden_apple_tree_sapling", <item:appletreesrev:gapple_sapling>, [
    [<item:minecraft:gold_ingot>, <item:minecraft:golden_apple>, <item:minecraft:gold_ingot>],
    [<item:minecraft:golden_apple>, <item:appletreesrev:apple_sapling>, <item:minecraft:golden_apple>],
    [<item:minecraft:gold_ingot>, <item:minecraft:golden_apple>, <item:minecraft:gold_ingot>]
]);

craftingTable.addShaped("baer_quests", <item:patchouli:guide_book>.withTag({"patchouli:book": "patchouli:baercraft_quests"}), [
    [<item:minecraft:leather>, <item:minecraft:leather>, <item:minecraft:leather>],
    [<tag:items:forge:ingots>, <item:minecraft:paper>, <item:minecraft:paper>],
    [<item:minecraft:leather>, <item:minecraft:leather>, <item:minecraft:leather>]
]);

craftingTable.addShaped("baer_tome", <item:patchouli:guide_book>.withTag({"patchouli:book": "patchouli:baercraft_tome"}), [
    [<item:minecraft:leather>, <item:minecraft:leather>, <item:minecraft:leather>],
    [<tag:items:forge:ingots>, <item:minecraft:paper>, <item:minecraft:paper>],
    [<item:minecraft:leather>, <item:minecraft:leather>, <item:minecraft:leather>]
]);

craftingTable.addShaped("pr_tome", <item:patchouli:guide_book>.withTag({"patchouli:book": "patchouli:baercraft_building"}), [
    [<item:minecraft:leather>, <item:minecraft:leather>, <item:minecraft:leather>],
    [<tag:items:forge:ingots>, <item:minecraft:paper>, <item:minecraft:paper>],
    [<item:minecraft:leather>, <item:minecraft:leather>, <item:minecraft:leather>]
]);

craftingTable.addShaped("fire_blast", <item:xplosives:fireblast_tnt>, [
    [<item:minecraft:tnt>, <item:minecraft:tnt>, <item:minecraft:tnt>],
    [<item:minecraft:tnt>, <item:xplosives:packed_tnt>, <item:minecraft:tnt>],
    [<item:minecraft:tnt>, <item:minecraft:tnt>, <item:minecraft:tnt>]
]);

craftingTable.addShaped("incendiary", <item:xplosives:incendiary_bomb>, [
    [<item:xplosives:fireblast_tnt>, <item:xplosives:fireblast_tnt>, <item:xplosives:fireblast_tnt>],
    [<item:xplosives:fireblast_tnt>, <item:xplosives:physics_bomb>, <item:xplosives:fireblast_tnt>],
    [<item:xplosives:fireblast_tnt>, <item:xplosives:fireblast_tnt>, <item:xplosives:fireblast_tnt>]
]);

craftingTable.addShaped("hydrogen", <item:xplosives:hydrogen_bomb>, [
    [<item:xplosives:incendiary_bomb>, <item:xplosives:incendiary_bomb>, <item:xplosives:incendiary_bomb>],
    [<item:xplosives:incendiary_bomb>, <item:appliedenergistics2:singularity>, <item:xplosives:incendiary_bomb>],
    [<item:xplosives:incendiary_bomb>, <item:xplosives:incendiary_bomb>, <item:xplosives:incendiary_bomb>]
]);

craftingTable.addShaped("deed", <item:craftabledeeds:empty_deed>, [
    [<item:minecraft:paper>, <item:minecraft:paper>, <item:minecraft:paper>],
    [<item:minecraft:paper>, <item:minecraft:redstone>, <item:minecraft:paper>],
    [<item:minecraft:paper>, <item:minecraft:paper>, <item:minecraft:paper>]
]);

craftingTable.addShaped("deedped", <item:craftabledeeds:deed_pedestal>, [
    [<item:minecraft:air>, <item:minecraft:air>, <item:minecraft:air>],
    [<item:minecraft:gold_ingot>, <item:minecraft:gold_ingot>, <item:minecraft:gold_ingot>],
    [<item:minecraft:iron_ingot>, <item:minecraft:iron_ingot>, <item:minecraft:iron_ingot>]
]);