import mods.jei.JEI.removeAndHide as rah;
#modloaded cyclicmagic

# Remove and Hide
rah(<cyclicmagic:inventory_food>);
rah(<cyclicmagic:crafting_food>);
rah(<cyclicmagic:emerald_axe>);
rah(<cyclicmagic:emerald_pickaxe>);
rah(<cyclicmagic:emerald_spade>);
rah(<cyclicmagic:emerald_sword>);
rah(<cyclicmagic:emerald_hoe>);
rah(<cyclicmagic:mattock>);

# Crystal Sword
recipes.remove(<cyclicmagic:crystal_sword>);

recipes.addShaped(<cyclicmagic:crystal_sword>, 
[[null, <ore:gemObsidian>, null],
[null, <emeraldobsidian:obsidian_sword>.anyDamage(), null], 
[null, <ore:gemDiamond>, null]]);

# Sword of Atrophy
recipes.remove(<cyclicmagic:sword_weakness>);

recipes.addShaped(<cyclicmagic:sword_weakness>, 
[[<minecraft:dragon_breath>, <ore:gemObsidian>, <minecraft:dragon_breath>],
[<ore:blockDiamond>, <cyclicmagic:crystal_sword>.anyDamage(), <ore:blockDiamond>], 
[<minecraft:mycelium>, <ore:gemAmber>, <minecraft:mycelium>]]);

# Sword of Decay
recipes.remove(<cyclicmagic:sword_slowness>);

recipes.addShaped(<cyclicmagic:sword_slowness>, 
[[<minecraft:dragon_breath>, <ore:gemObsidian>, <minecraft:dragon_breath>],
[<ore:blockDiamond>, <cyclicmagic:crystal_sword>.anyDamage(), <ore:blockDiamond>], 
[<minecraft:packed_ice>, <ore:gemAmber>, <minecraft:packed_ice>]]);

# Sword of Evasion
recipes.remove(<cyclicmagic:sword_ender>);

recipes.addShaped(<cyclicmagic:sword_ender>, 
[[<minecraft:dragon_breath>, <ore:gemObsidian>, <minecraft:dragon_breath>],
[<ore:blockDiamond>, <cyclicmagic:crystal_sword>.anyDamage(), <ore:blockDiamond>], 
[<minecraft:chorus_fruit>, <ore:gemAmber>, <minecraft:chorus_fruit>]]);

# Crystallized Obsidian Armor
var gemObsidian = <ore:gemObsidian>;

recipes.remove(<cyclicmagic:purple_helmet>);
recipes.remove(<cyclicmagic:purple_chestplate>);
recipes.remove(<cyclicmagic:purple_leggings>);
recipes.remove(<cyclicmagic:purple_boots>);

recipes.addShaped(<cyclicmagic:purple_helmet>, 
[[gemObsidian, gemObsidian, gemObsidian],
[gemObsidian, <emeraldobsidian:obsidian_helmet>.anyDamage(), gemObsidian], 
[null, null, null]]);

recipes.addShaped(<cyclicmagic:purple_chestplate>, 
[[gemObsidian, <emeraldobsidian:obsidian_chestplate>.anyDamage(), gemObsidian],
[gemObsidian, gemObsidian, gemObsidian], 
[gemObsidian, gemObsidian, gemObsidian]]);

recipes.addShaped(<cyclicmagic:purple_leggings>, 
[[gemObsidian, gemObsidian, gemObsidian],
[gemObsidian, <emeraldobsidian:obsidian_leggings>.anyDamage(), gemObsidian], 
[gemObsidian, null, gemObsidian]]);

recipes.addShaped(<cyclicmagic:purple_boots>, 
[[gemObsidian, <emeraldobsidian:obsidian_boots>.anyDamage(), gemObsidian],
[gemObsidian, null, gemObsidian], 
[null, null, null]]);

# Air Charm
recipes.remove(<cyclicmagic:charm_air>);

mods.extendedcrafting.TableCrafting.addShaped(0, <cyclicmagic:charm_air>, [
    [<mysticalagriculture:crafting:33>, <mysticalagriculture:crafting:24>, <mysticalagriculture:crafting:33>], 
    [<ore:cropNetherWart>, <ore:gemDiamond>, <ore:cropNetherWart>], 
    [<mysticalagriculture:crafting:33>, <mysticalagriculture:crafting:24>, <mysticalagriculture:crafting:33>]
]);

###################### 
#        Food        #
######################

# Glowing Chorus Fruit
recipes.remove(<cyclicmagic:glowing_chorus>);

mods.extendedcrafting.TableCrafting.addShaped(0, <cyclicmagic:glowing_chorus> * 8, [
    [<minecraft:chorus_fruit>, <minecraft:golden_apple:1>, <minecraft:chorus_fruit>], 
    [<minecraft:potion>.withTag({Potion: "cyclicmagic:slowfall"}), <cyclicmagic:charm_air>.anyDamage(), <minecraft:potion>.withTag({Potion: "cyclicmagic:slowfall"})], 
    [<minecraft:chorus_fruit>, <extrautils2:magicapple>, <minecraft:chorus_fruit>]
]);
mods.extendedcrafting.TableCrafting.addShaped(0, <cyclicmagic:glowing_chorus> * 8, [
    [<minecraft:chorus_fruit>, <minecraft:golden_apple:1>, <minecraft:chorus_fruit>], 
    [<minecraft:splash_potion>.withTag({Potion: "cyclicmagic:slowfall"}), <cyclicmagic:charm_air>.anyDamage(), <minecraft:splash_potion>.withTag({Potion: "cyclicmagic:slowfall"})], 
    [<minecraft:chorus_fruit>, <extrautils2:magicapple>, <minecraft:chorus_fruit>]
]);
mods.extendedcrafting.TableCrafting.addShaped(0, <cyclicmagic:glowing_chorus> * 8, [
    [<minecraft:chorus_fruit>, <minecraft:golden_apple:1>, <minecraft:chorus_fruit>], 
    [<minecraft:lingering_potion>.withTag({Potion: "cyclicmagic:slowfall"}), <cyclicmagic:charm_air>.anyDamage(), <minecraft:lingering_potion>.withTag({Potion: "cyclicmagic:slowfall"})], 
    [<minecraft:chorus_fruit>, <extrautils2:magicapple>, <minecraft:chorus_fruit>]
]);

# Heart Container
recipes.remove(<cyclicmagic:heart_food>);

recipes.addShaped(<cyclicmagic:heart_food>, 
[[<harvestcraft:timpanoitem>, <tconstruct:materials:19>, <harvestcraft:meatfeastpizzaitem>],
[<ore:blockDiamond>, <harvestcraft:netherstartoastitem>, <ore:blockEmerald>], 
[<harvestcraft:thankfuldinneritem>, <minecraft:golden_apple:1>, <harvestcraft:cornedbeefbreakfastitem>]]);

/*
recipes.remove(<emeraldobsidian:obsidian_axe>);
recipes.remove(<emeraldobsidian:obsidian_pickaxe>);
recipes.remove(<emeraldobsidian:obsidian_shovel>);
recipes.remove(<emeraldobsidian:obsidian_sword>);
recipes.remove(<emeraldobsidian:obsidian_hoe>);

recipes.addShaped(<emeraldobsidian:obsidian_helmet>, 
[[obsidianIngot, obsidianIngot, obsidianIngot],
[obsidianIngot, <minecraft:diamond_helmet>, obsidianIngot], 
[null, null, null]]);

recipes.addShaped(<emeraldobsidian:obsidian_chestplate>, 
[[obsidianIngot, <minecraft:diamond_chestplate>, obsidianIngot],
[obsidianIngot, obsidianIngot, obsidianIngot], 
[obsidianIngot, obsidianIngot, obsidianIngot]]);

recipes.addShaped(<emeraldobsidian:obsidian_leggings>, 
[[obsidianIngot, obsidianIngot, obsidianIngot],
[obsidianIngot, <minecraft:diamond_leggings>, obsidianIngot], 
[obsidianIngot, null, obsidianIngot]]);

recipes.addShaped(<emeraldobsidian:obsidian_boots>, 
[[obsidianIngot, <minecraft:diamond_boots>, obsidianIngot],
[obsidianIngot, null, obsidianIngot], 
[null, null, null]]);

recipes.addShaped(<emeraldobsidian:obsidian_axe>, 
[[obsidianIngot, obsidianIngot, null],
[obsidianIngot, <minecraft:diamond_axe>, null], 
[null, <minecraft:blaze_rod>, null]]);

recipes.addShaped(<emeraldobsidian:obsidian_pickaxe>, 
[[obsidianIngot, obsidianIngot, obsidianIngot],
[null, <minecraft:diamond_pickaxe>, null], 
[null, <minecraft:blaze_rod>, null]]);

recipes.addShaped(<emeraldobsidian:obsidian_shovel>, 
[[null, obsidianIngot, null],
[null, <minecraft:diamond_shovel>, null], 
[null, <minecraft:blaze_rod>, null]]);

recipes.addShaped(<emeraldobsidian:obsidian_sword>, 
[[null, obsidianIngot, null],
[null, <minecraft:diamond_sword>, null], 
[null, <minecraft:blaze_rod>, null]]);

recipes.addShaped(<emeraldobsidian:obsidian_hoe>, 
[[obsidianIngot, obsidianIngot, null],
[null, <minecraft:diamond_hoe>, null], 
[null, <minecraft:blaze_rod>, null]]);
 */