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

# Remove and Hide Recipes
rah(<emeraldobsidian:emerald_helmet>);
rah(<emeraldobsidian:emerald_chestplate>);
rah(<emeraldobsidian:emerald_leggings>);
rah(<emeraldobsidian:emerald_boots>);
rah(<emeraldobsidian:emerald_axe>);
rah(<emeraldobsidian:emerald_pickaxe>);
rah(<emeraldobsidian:emerald_shovel>);
rah(<emeraldobsidian:emerald_sword>);
rah(<emeraldobsidian:emerald_hoe>);

var obsidianIngot = <emeraldobsidian:obsidian_ingot>;
var jewelledEmerald = <emeraldobsidian:jewelled_emerald>;

# Obsidian Ingot
furnace.remove(<emeraldobsidian:obsidian_ingot>);

mods.thermalexpansion.InductionSmelter.addRecipe(obsidianIngot, <thermalfoundation:material:770> * 4, <thermalfoundation:material:162>, 15000);
mods.enderio.AlloySmelter.addRecipe(obsidianIngot, [<thermalfoundation:material:770> * 4, <thermalfoundation:material:162>], 15000);

# Emerald Armor
recipes.addShaped(<emeraldobsidian:jewelled_emerald_helmet>, 
[[jewelledEmerald, <cyclicmagic:emerald_helmet>.anyDamage(), jewelledEmerald],
[jewelledEmerald, <ore:blockGlass>, jewelledEmerald], 
[null, null, null]]);

recipes.addShaped(<emeraldobsidian:jewelled_emerald_chestplate>, 
[[null, jewelledEmerald, null],
[jewelledEmerald, <cyclicmagic:emerald_chestplate>.anyDamage(), jewelledEmerald], 
[null, jewelledEmerald, null]]);

recipes.addShaped(<emeraldobsidian:jewelled_emerald_leggings>, 
[[null, jewelledEmerald, null],
[jewelledEmerald, <cyclicmagic:emerald_leggings>.anyDamage(), jewelledEmerald], 
[null, jewelledEmerald, null]]);

recipes.addShaped(<emeraldobsidian:jewelled_emerald_boots>, 
[[null, null, null],
[jewelledEmerald, <cyclicmagic:emerald_boots>.anyDamage(), jewelledEmerald], 
[jewelledEmerald, <ore:woolWhite>, jewelledEmerald]]);

# Obsidian Armor
recipes.remove(<emeraldobsidian:obsidian_helmet>);
recipes.remove(<emeraldobsidian:obsidian_chestplate>);
recipes.remove(<emeraldobsidian:obsidian_leggings>);
recipes.remove(<emeraldobsidian:obsidian_boots>);
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>.anyDamage(), obsidianIngot], 
[null, null, null]]);

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

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

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

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

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

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

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

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