--
-- =====================================================================================
--
--  OpenMiner
--
--  Copyright (C) 2018-2020 Unarelith, Quentin Bazin <openminer@unarelith.net>
--  Copyright (C) 2019-2020 the OpenMiner contributors (see CONTRIBUTORS.md)
--
--  This file is part of OpenMiner.
--
--  OpenMiner is free software; you can redistribute it and/or
--  modify it under the terms of the GNU Lesser General Public
--  License as published by the Free Software Foundation; either
--  version 2.1 of the License, or (at your option) any later version.
--
--  OpenMiner is distributed in the hope that it will be useful,
--  but WITHOUT ANY WARRANTY; without even the implied warranty of
--  MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU
--  Lesser General Public License for more details.
--
--  You should have received a copy of the GNU Lesser General Public License
--  along with OpenMiner; if not, write to the Free Software Foundation, Inc.,
--  51 Franklin Street, Fifth Floor, Boston, MA  02110-1301 USA
--
-- =====================================================================================
--

-- Wooden Axe
mod:crafting_recipe {
	result = {
		id = "default:wooden_axe",
		amount = 1
	},

	pattern = {
		"##",
		"#|",
		" |"
	},

	keys = {
		['#'] = "default:oak_planks",
		['|'] = "default:stick",
	}
}

-- Wooden Hoe
mod:crafting_recipe {
	result = {
		id = "default:wooden_hoe",
		amount = 1
	},

	pattern = {
		"##",
		" |",
		" |"
	},

	keys = {
		['#'] = "default:oak_planks",
		['|'] = "default:stick",
	}
}

-- Wooden Pickaxe
mod:crafting_recipe {
	result = {
		id = "default:wooden_pickaxe",
		amount = 1
	},

	pattern = {
		"###",
		" | ",
		" | "
	},

	keys = {
		['#'] = "default:oak_planks",
		['|'] = "default:stick",
	}
}

-- Wooden Shovel
mod:crafting_recipe {
	result = {
		id = "default:wooden_shovel",
		amount = 1
	},

	pattern = {
		"#",
		"|",
		"|"
	},

	keys = {
		['#'] = "default:oak_planks",
		['|'] = "default:stick",
	}
}

-- Wooden Sword
mod:crafting_recipe {
	result = {
		id = "default:wooden_sword",
		amount = 1
	},

	pattern = {
		"#",
		"#",
		"|"
	},

	keys = {
		['#'] = "default:oak_planks",
		['|'] = "default:stick",
	}
}

-- Stone Axe
mod:crafting_recipe {
	result = {
		id = "default:stone_axe",
		amount = 1
	},

	pattern = {
		"##",
		"#|",
		" |"
	},

	keys = {
		['#'] = "default:cobblestone",
		['|'] = "default:stick",
	}
}

-- Stone Hoe
mod:crafting_recipe {
	result = {
		id = "default:stone_hoe",
		amount = 1
	},

	pattern = {
		"##",
		" |",
		" |"
	},

	keys = {
		['#'] = "default:cobblestone",
		['|'] = "default:stick",
	}
}

-- Stone Pickaxe
mod:crafting_recipe {
	result = {
		id = "default:stone_pickaxe",
		amount = 1
	},

	pattern = {
		"###",
		" | ",
		" | "
	},

	keys = {
		['#'] = "default:cobblestone",
		['|'] = "default:stick",
	}
}

-- Stone Shovel
mod:crafting_recipe {
	result = {
		id = "default:stone_shovel",
		amount = 1
	},

	pattern = {
		"#",
		"|",
		"|"
	},

	keys = {
		['#'] = "default:cobblestone",
		['|'] = "default:stick",
	}
}

-- Stone Sword
mod:crafting_recipe {
	result = {
		id = "default:stone_sword",
		amount = 1
	},

	pattern = {
		"#",
		"#",
		"|"
	},

	keys = {
		['#'] = "default:cobblestone",
		['|'] = "default:stick",
	}
}


-- Gold Axe
mod:crafting_recipe {
	result = {
		id = "default:golden_axe",
		amount = 1
	},

	pattern = {
		"##",
		"#|",
		" |"
	},

	keys = {
		['#'] = "default:gold_ingot",
		['|'] = "default:stick",
	}
}

-- Gold Hoe
mod:crafting_recipe {
	result = {
		id = "default:golden_hoe",
		amount = 1
	},

	pattern = {
		"##",
		" |",
		" |"
	},

	keys = {
		['#'] = "default:gold_ingot",
		['|'] = "default:stick",
	}
}

-- Gold Pickaxe
mod:crafting_recipe {
	result = {
		id = "default:golden_pickaxe",
		amount = 1
	},

	pattern = {
		"###",
		" | ",
		" | "
	},

	keys = {
		['#'] = "default:gold_ingot",
		['|'] = "default:stick",
	}
}

-- Gold Shovel
mod:crafting_recipe {
	result = {
		id = "default:golden_shovel",
		amount = 1
	},

	pattern = {
		"#",
		"|",
		"|"
	},

	keys = {
		['#'] = "default:gold_ingot",
		['|'] = "default:stick",
	}
}

-- Gold Sword
mod:crafting_recipe {
	result = {
		id = "default:golden_sword",
		amount = 1
	},

	pattern = {
		"#",
		"#",
		"|"
	},

	keys = {
		['#'] = "default:gold_ingot",
		['|'] = "default:stick",
	}
}

-- Iron Axe
mod:crafting_recipe {
	result = {
		id = "default:iron_axe",
		amount = 1
	},

	pattern = {
		"##",
		"#|",
		" |"
	},

	keys = {
		['#'] = "default:iron_ingot",
		['|'] = "default:stick",
	}
}

-- Iron Hoe
mod:crafting_recipe {
	result = {
		id = "default:iron_hoe",
		amount = 1
	},

	pattern = {
		"##",
		" |",
		" |"
	},

	keys = {
		['#'] = "default:iron_ingot",
		['|'] = "default:stick",
	}
}

-- Iron Pickaxe
mod:crafting_recipe {
	result = {
		id = "default:iron_pickaxe",
		amount = 1
	},

	pattern = {
		"###",
		" | ",
		" | "
	},

	keys = {
		['#'] = "default:iron_ingot",
		['|'] = "default:stick",
	}
}

-- Iron Shovel
mod:crafting_recipe {
	result = {
		id = "default:iron_shovel",
		amount = 1
	},

	pattern = {
		"#",
		"|",
		"|"
	},

	keys = {
		['#'] = "default:iron_ingot",
		['|'] = "default:stick",
	}
}

-- Iron Sword
mod:crafting_recipe {
	result = {
		id = "default:iron_sword",
		amount = 1
	},

	pattern = {
		"#",
		"#",
		"|"
	},

	keys = {
		['#'] = "default:iron_ingot",
		['|'] = "default:stick",
	}
}

-- Diamond Axe
mod:crafting_recipe {
	result = {
		id = "default:diamond_axe",
		amount = 1
	},

	pattern = {
		"##",
		"#|",
		" |"
	},

	keys = {
		['#'] = "default:diamond",
		['|'] = "default:stick",
	}
}

-- Diamond Hoe
mod:crafting_recipe {
	result = {
		id = "default:diamond_hoe",
		amount = 1
	},

	pattern = {
		"##",
		" |",
		" |"
	},

	keys = {
		['#'] = "default:diamond",
		['|'] = "default:stick",
	}
}

-- Diamond Pickaxe
mod:crafting_recipe {
	result = {
		id = "default:diamond_pickaxe",
		amount = 1
	},

	pattern = {
		"###",
		" | ",
		" | "
	},

	keys = {
		['#'] = "default:diamond",
		['|'] = "default:stick",
	}
}

-- Diamond Shovel
mod:crafting_recipe {
	result = {
		id = "default:diamond_shovel",
		amount = 1
	},

	pattern = {
		"#",
		"|",
		"|"
	},

	keys = {
		['#'] = "default:diamond",
		['|'] = "default:stick",
	}
}

-- Diamond Sword
mod:crafting_recipe {
	result = {
		id = "default:diamond_sword",
		amount = 1
	},

	pattern = {
		"#",
		"#",
		"|"
	},

	keys = {
		['#'] = "default:diamond",
		['|'] = "default:stick",
	}
}

-- Stick
mod:crafting_recipe {
	result = {
		id = "default:stick",
		amount = 4
	},

	pattern = {
		'#',
		'#'
	},

	keys = {['#'] = "group:default_planks"}
}

-- Planks
mod:crafting_recipe {
	result = {
		id = "default:oak_planks",
		amount = 4
	},
	pattern = {"#"},
	keys = {["#"] = "default:oak_wood"}
}

-- Workbench
mod:crafting_recipe {
	result = {
		id = "default:workbench",
		amount = 1
	},
	pattern = {
		"##",
		"##"
	},
	keys = {["#"] = "group:default_planks"}
}

-- Furnace
mod:crafting_recipe {
	result = {
		id = "default:furnace",
		amount = 1
	},

	pattern = {
		"###",
		"# #",
		"###"
	},

	keys = {["#"] = "default:cobblestone"}
}

-- Iron Ingot
mod:smelting_recipe {
	input = {id = "default:iron_ore", amount = 1},
	output = {id = "default:iron_ingot", amount = 1}
}

-- Iron Ingot
mod:smelting_recipe {
	input = {id = "default:coal_ore", amount = 1},
	output = {id = "default:coal", amount = 1}
}

-- Iron Ingot
mod:smelting_recipe {
	input = {id = "default:emerald_ore", amount = 1},
	output = {id = "default:emerald", amount = 1}
}

-- Iron Ingot
mod:smelting_recipe {
	input = {id = "default:gold_ore", amount = 1},
	output = {id = "default:gold_ingot", amount = 1}
}

-- Iron Ingot
mod:smelting_recipe {
	input = {id = "default:redstone_ore", amount = 1},
	output = {id = "default:redstone_dust", amount = 1}
}

-- Iron Ingot
mod:smelting_recipe {
	input = {id = "default:lapis_ore", amount = 1},
	output = {id = "default:lapis_lazuli", amount = 1}
}

-- Stone
mod:smelting_recipe {
	input = {id = "default:cobblestone", amount = 1},
	output = {id = "default:stone", amount = 1}
}

-- Glass
mod:smelting_recipe {
	input = {id = "default:sand", amount = 1},
	output = {id = "default:glass", amount = 1}
}

-- Glass
mod:smelting_recipe {
	input = {id = "default:red_sand", amount = 1},
	output = {id = "default:glass", amount = 1}
}

-- Charcoal
mod:smelting_recipe {
	input = {id = "default:oak_wood", amount = 1},
	output = {id = "default:charcoal", amount = 1}
}

-- Brick
mod:smelting_recipe {
	input = {id = "default:clay_ball", amount = 1},
	output = {id = "default:brick", amount = 1}
}

-- Nether Brick
mod:smelting_recipe {
	input = {id = "default:netherrack", amount = 1},
	output = {id = "default:netherbrick", amount = 1}
}

-- Baked Brick
mod:smelting_recipe {
	input = {id = "default:potato", amount = 1},
	output = {id = "default:potato_baked", amount = 1}
}

-- Cooked Beef
mod:smelting_recipe {
	input = {id = "default:beef_raw", amount = 1},
	output = {id = "default:beef_cooked", amount = 1}
}

-- Cooked Porkchop
mod:smelting_recipe {
	input = {id = "default:porkchop_raw", amount = 1},
	output = {id = "default:porkchop_cooked", amount = 1}
}

-- Cooked Mutton
mod:smelting_recipe {
	input = {id = "default:mutton_raw", amount = 1},
	output = {id = "default:mutton_cooked", amount = 1}
}

-- Cooked Chicken
mod:smelting_recipe {
	input = {id = "default:chicken_raw", amount = 1},
	output = {id = "default:chicken_cooked", amount = 1}
}

-- Cooked Rabbit
mod:smelting_recipe {
	input = {id = "default:rabbit_raw", amount = 1},
	output = {id = "default:rabbit_cooked", amount = 1}
}

-- Cooked Cod
mod:smelting_recipe {
	input = {id = "default:fish_cod_raw", amount = 1},
	output = {id = "default:fish_cod_cooked", amount = 1}
}

-- Cooked Salmon
mod:smelting_recipe {
	input = {id = "default:fish_salmon_raw", amount = 1},
	output = {id = "default:fish_salmon_cooked", amount = 1}
}

-- Bricks
mod:crafting_recipe {
	result = {
		id = "default:bricks",
		amount = 1
	},
	pattern = {
		"##",
		"##"
	},
	keys = {["#"] = "default:brick"}
}

-- Stone Bricks
mod:crafting_recipe {
	result = {
		id = "default:stonebrick",
		amount = 1
	},
	pattern = {
		"##",
		"##"
	},
	keys = {["#"] = "default:stone"}
}

-- Oak Wood Slabs
mod:crafting_recipe {
	result = {
		id = "default:oak_slab",
		amount = 3
	},
	pattern = {
		"###",
	},
	keys = {["#"] = "default:oak_planks"}
}

-- Bread
mod:crafting_recipe {
	result = {
		id = "default:bread",
		amount = 1
	},
	pattern = {
		"###",
	},
	keys = {["#"] = "default:wheat"}
}

-- Bookshelf
mod:crafting_recipe {
	result = {
		id = "default:bookshelf",
		amount = 1
	},
	pattern = {
		"###",
		"BBB",
		"###"
	},
	keys = {["#"] = "default:oak_planks", ["B"] = "default:book_normal"}
}

-- Sandstone
mod:crafting_recipe {
	result = {
		id = "default:sandstone",
		amount = 1
	},
	pattern = {
		"##",
		"##"
	},
	keys = {["#"] = "default:sand"}
}

-- Red Sandstone
mod:crafting_recipe {
	result = {
		id = "default:red_sandstone",
		amount = 1
	},
	pattern = {
		"##",
		"##"
	},
	keys = {["#"] = "default:red_sand"}
}

-- Cut Sandstone
mod:crafting_recipe {
	result = {
		id = "default:sandstone_smooth",
		amount = 4
	},
	pattern = {
		"##",
		"##"
	},
	keys = {["#"] = "default:sandstone"}
}

-- Cut Red Sandstone
mod:crafting_recipe {
	result = {
		id = "default:red_sandstone_smooth",
		amount = 4
	},
	pattern = {
		"##",
		"##"
	},
	keys = {["#"] = "default:red_sandstone"}
}

-- Coal Block
mod:crafting_recipe {
	result = {
		id = "default:coal_block",
		amount = 1
	},
	pattern = {
		"###",
		"###",
		"###"
	},
	keys = {["#"] = "default:coal"}
}

-- Iron Block
mod:crafting_recipe {
	result = {
		id = "default:iron_block",
		amount = 1
	},
	pattern = {
		"###",
		"###",
		"###"
	},
	keys = {["#"] = "default:iron_ingot"}
}

-- Gold Block
mod:crafting_recipe {
	result = {
		id = "default:gold_block",
		amount = 1
	},
	pattern = {
		"###",
		"###",
		"###"
	},
	keys = {["#"] = "default:gold_ingot"}
}

-- Lapis Block
mod:crafting_recipe {
	result = {
		id = "default:lapis_block",
		amount = 1
	},
	pattern = {
		"###",
		"###",
		"###"
	},
	keys = {["#"] = "default:lapis_lazuli"}
}

-- Redstone Block
mod:crafting_recipe {
	result = {
		id = "default:redstone_block",
		amount = 1
	},
	pattern = {
		"###",
		"###",
		"###"
	},
	keys = {["#"] = "default:redstone_dust"}
}

-- Diamond Block
mod:crafting_recipe {
	result = {
		id = "default:diamond_block",
		amount = 1
	},
	pattern = {
		"###",
		"###",
		"###"
	},
	keys = {["#"] = "default:diamond"}
}

-- Emerald Block
mod:crafting_recipe {
	result = {
		id = "default:emerald_block",
		amount = 1
	},
	pattern = {
		"###",
		"###",
		"###"
	},
	keys = {["#"] = "default:emerald"}
}

-- Coal
mod:crafting_recipe {
	result = {
		id = "default:coal",
		amount = 9
	},
	pattern = {
		"#"
	},
	keys = {["#"] = "default:coal_block"}
}

-- Iron Ingots
mod:crafting_recipe {
	result = {
		id = "default:iron_ingot",
		amount = 9
	},
	pattern = {
		"#"
	},
	keys = {["#"] = "default:iron_block"}
}

-- Gold Ingots
mod:crafting_recipe {
	result = {
		id = "default:gold_ingot",
		amount = 9
	},
	pattern = {
		"#"
	},
	keys = {["#"] = "default:gold_block"}
}

-- Lapis Lazuli
mod:crafting_recipe {
	result = {
		id = "default:lapis_lazuli",
		amount = 9
	},
	pattern = {
		"#"
	},
	keys = {["#"] = "default:lapis_block"}
}

-- Redstone
mod:crafting_recipe {
	result = {
		id = "default:redstone_dust",
		amount = 9
	},
	pattern = {
		"#"
	},
	keys = {["#"] = "default:redstone_block"}
}

-- Diamonds
mod:crafting_recipe {
	result = {
		id = "default:diamond",
		amount = 9
	},
	pattern = {
		"#"
	},
	keys = {["#"] = "default:diamond_block"}
}

-- Emerald
mod:crafting_recipe {
	result = {
		id = "default:emerald",
		amount = 9
	},
	pattern = {
		"#"
	},
	keys = {["#"] = "default:emerald_block"}
}


-- End Stone Bricks
mod:crafting_recipe {
	result = {
		id = "default:end_bricks",
		amount = 1
	},
	pattern = {
		"###",
		"###",
		"###"
	},
	keys = {["#"] = "default:end_stone"}
}

-- Glowstone
mod:crafting_recipe {
	result = {
		id = "default:glowstone",
		amount = 1
	},
	pattern = {
		"##",
		"##"
	},
	keys = {["#"] = "default:glowstone_dust"}
}

-- Nether Bricks
mod:crafting_recipe {
	result = {
		id = "default:nether_bricks",
		amount = 1
	},
	pattern = {
		"##",
		"##"
	},
	keys = {["#"] = "default:netherbrick"}
}

-- Nether Bricks
mod:crafting_recipe {
	result = {
		id = "default:red_nether_brick",
		amount = 1
	},
	pattern = {
		"N#",
		"#N"
	},
	keys = {["#"] = "default:netherbrick", ["N"] = "default:nether_wart"}
}

-- Redstone Lamp
mod:crafting_recipe {
	result = {
		id = "default:redstone_lamp",
		amount = 1
	},
	pattern = {
		" # ",
		"#G#",
		" # "
	},
	keys = {["#"] = "default:redstone_dust", ["G"] = "default:glowstone"}
}

-- Slime Block
mod:crafting_recipe {
	result = {
		id = "default:slime",
		amount = 1
	},
	pattern = {
		"##",
		"##"
	},
	keys = {["#"] = "default:slime_ball"}
}

-- Snow Block
mod:crafting_recipe {
	result = {
		id = "default:snow",
		amount = 1
	},
	pattern = {
		"##",
		"##"
	},
	keys = {["#"] = "default:snowball"}
}

-- Arrow
mod:crafting_recipe {
	result = {
		id = "default:arrow",
		amount = 4
	},
	pattern = {
		"^",
		"|",
		"X"
	},
	keys = {["^"] = "default:flint", ["|"] = "default:stick", ["X"] = "default:feather"}
}

-- Beetroot Soup
mod:crafting_recipe {
	result = {
		id = "default:beetroot_soup",
		amount = 4
	},
	pattern = {
		"###",
		"###",
		" B "
	},
	keys = {["#"] = "default:beetroot", ["B"] = "default:bowl"}
}

-- Blaze Powder
mod:crafting_recipe {
	result = {
		id = "default:blaze_powder",
		amount = 2
	},
	pattern = {
		"#"
	},
	keys = {["#"] = "default:blaze_rod"}
}

-- Bone Meal
mod:crafting_recipe {
	result = {
		id = "default:bone_meal",
		amount = 3
	},
	pattern = {
		"#"
	},
	keys = {["#"] = "default:bone"}
}

-- Book
mod:crafting_recipe {
	result = {
		id = "default:book_normal",
		amount = 1
	},
	pattern = {
		"##",
		"#L"
	},
	keys = {["#"] = "default:paper", ["L"] = "default:leather"}
}

-- Bowl
mod:crafting_recipe {
	result = {
		id = "default:bowl",
		amount = 1
	},
	pattern = {
		"# #",
		" # "
	},
	keys = {["#"] = "default:oak_planks"}
}

-- Bucket
mod:crafting_recipe {
	result = {
		id = "default:bucket_empty",
		amount = 1
	},
	pattern = {
		"# #",
		" # "
	},
	keys = {["#"] = "default:iron_ingot"}
}

-- Glistering Melon Slice
mod:crafting_recipe {
	result = {
		id = "default:melon_speckled",
		amount = 1
	},
	pattern = {
		"###",
		"#M#",
		"###"
	},
	keys = {["#"] = "default:gold_nugget", ["M"] = "default:melon"}
}

-- Golden Apple
mod:crafting_recipe {
	result = {
		id = "default:apple_golden",
		amount = 1
	},
	pattern = {
		"###",
		"#A#",
		"###"
	},
	keys = {["#"] = "default:gold_ingot", ["A"] = "default:apple"}
}

-- Golden Carrot
mod:crafting_recipe {
	result = {
		id = "default:golden_carrot",
		amount = 1
	},
	pattern = {
		"###",
		"#C#",
		"###"
	},
	keys = {["#"] = "default:gold_nugget", ["C"] = "default:carrot"}
}

-- Iron Ingot
mod:crafting_recipe {
	result = {
		id = "default:iron_ingot",
		amount = 1
	},
	pattern = {
		"###",
		"###",
		"###"
	},
	keys = {["#"] = "default:iron_nugget"}
}

-- Gold Ingot
mod:crafting_recipe {
	result = {
		id = "default:gold_ingot",
		amount = 1
	},
	pattern = {
		"###",
		"###",
		"###"
	},
	keys = {["#"] = "default:gold_nugget"}
}

-- Iron Nuggets
mod:crafting_recipe {
	result = {
		id = "default:iron_nugget",
		amount = 9
	},
	pattern = {
		"#"
	},
	keys = {["#"] = "default:iron_ingot"}
}

-- Gold Nugget
mod:crafting_recipe {
	result = {
		id = "default:gold_nugget",
		amount = 9
	},
	pattern = {
		"#"
	},
	keys = {["#"] = "default:gold_ingot"}
}

-- Magma Cream
mod:crafting_recipe {
	result = {
		id = "default:magma_cream",
		amount = 1
	},
	pattern = {
		"#@"
	},
	keys = {["#"] = "default:blaze_powder", ["@"] = "default:slime_ball"}
}

-- Magma Cream
mod:crafting_recipe {
	result = {
		id = "default:paper",
		amount = 1
	},
	pattern = {
		"###"
	},
	keys = {["#"] = "default:sugar_cane"}
}

-- Magma Cream
mod:crafting_recipe {
	result = {
		id = "default:hay_block",
		amount = 1
	},
	pattern = {
		"###",
		"###",
		"###"
	},
	keys = {["#"] = "default:wheat"}
}
