OpenMiner/mods/default/recipes.lua

649 lines
8.3 KiB
Lua

--
-- =====================================================================================
--
-- 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"}
}
-- Glowstone
mod:crafting_recipe {
result = {
id = "default:glowstone",
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}
}
-- 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}
}
-- 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}
}
-- Bricks
mod:crafting_recipe {
result = {
id = "default:bricks",
amount = 1
},
pattern = {
"##",
"##"
},
keys = {["#"] = "default:brick"}
}
-- Stone Bricks
mod:crafting_recipe {
result = {
id = "default:stone_bricks",
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"}
}