2017-05-14 23:50:37 +02:00
|
|
|
|
|
|
|
--
|
|
|
|
-- Recipes
|
|
|
|
--
|
|
|
|
|
2017-05-17 17:57:14 +02:00
|
|
|
-- Autogenerated tools
|
|
|
|
|
|
|
|
local tool_types = {
|
|
|
|
pick = {
|
|
|
|
wood = "group:planks 3",
|
|
|
|
stone = "group:stone 3",
|
|
|
|
wrought_iron = "default:ingot_wrought_iron 3",
|
|
|
|
steel = "default:ingot_steel 3",
|
|
|
|
carbon_steel = "default:ingot_carbon_steel 3",
|
|
|
|
bronze = "default:ingot_bronze 3",
|
|
|
|
},
|
|
|
|
shovel = {
|
|
|
|
wood = "group:planks 3",
|
|
|
|
stone = "group:stone 3",
|
|
|
|
wrought_iron = "default:ingot_wrought_iron 3",
|
|
|
|
steel = "default:ingot_steel 3",
|
|
|
|
carbon_steel = "default:ingot_carbon_steel 3",
|
|
|
|
bronze = "default:ingot_bronze 3",
|
|
|
|
},
|
|
|
|
axe= {
|
|
|
|
wood = "group:planks 3",
|
|
|
|
stone = "group:stone 3",
|
|
|
|
wrought_iron = "default:ingot_wrought_iron 3",
|
|
|
|
steel = "default:ingot_steel 3",
|
|
|
|
carbon_steel = "default:ingot_carbon_steel 3",
|
|
|
|
bronze = "default:ingot_bronze 3",
|
|
|
|
},
|
|
|
|
spear = {
|
|
|
|
wood = "group:planks 2",
|
|
|
|
stone = "group:stone 2",
|
|
|
|
wrought_iron = "default:ingot_wrought_iron 2",
|
|
|
|
steel = "default:ingot_steel 2",
|
|
|
|
carbon_steel = "default:ingot_carbon_steel 2",
|
|
|
|
bronze = "default:ingot_bronze 2",
|
|
|
|
},
|
|
|
|
}
|
|
|
|
|
|
|
|
for tool_name, tool_type in pairs(tool_types) do
|
|
|
|
for material_name, material_item in pairs(tool_type) do
|
|
|
|
crafting.register_craft(
|
|
|
|
{
|
|
|
|
output = "default:" .. tool_name .. "_" .. material_name,
|
|
|
|
items = {
|
|
|
|
material_item,
|
|
|
|
"default:fiber 4",
|
|
|
|
"default:stick 3",
|
|
|
|
}
|
|
|
|
})
|
|
|
|
end
|
|
|
|
end
|
2017-05-14 23:50:37 +02:00
|
|
|
|
2017-05-17 17:57:14 +02:00
|
|
|
-- Broadsword
|
2017-05-14 23:50:37 +02:00
|
|
|
|
|
|
|
crafting.register_craft(
|
|
|
|
{
|
2017-05-17 17:57:14 +02:00
|
|
|
output = "default:broadsword",
|
2017-05-14 23:50:37 +02:00
|
|
|
items = {
|
2017-05-17 17:57:14 +02:00
|
|
|
"default:ingot_steel 4",
|
|
|
|
"default:fiber 5",
|
|
|
|
"default:stick 2",
|
2017-05-14 23:50:37 +02:00
|
|
|
}
|
|
|
|
})
|
|
|
|
|
2017-05-17 17:57:14 +02:00
|
|
|
-- Shears
|
2017-05-14 23:50:37 +02:00
|
|
|
|
|
|
|
crafting.register_craft(
|
|
|
|
{
|
2017-05-17 17:57:14 +02:00
|
|
|
output = "default:shears",
|
2017-05-14 23:50:37 +02:00
|
|
|
items = {
|
2017-05-17 17:57:14 +02:00
|
|
|
"default:ingot_wrought_iron 2",
|
|
|
|
"default:fiber 2",
|
|
|
|
"default:stick 2",
|
2017-05-14 23:50:37 +02:00
|
|
|
}
|
|
|
|
})
|
|
|
|
|
2017-05-17 17:57:14 +02:00
|
|
|
-- Minerals
|
2017-05-14 23:50:37 +02:00
|
|
|
|
|
|
|
crafting.register_craft(
|
|
|
|
{
|
2017-05-17 17:57:14 +02:00
|
|
|
output = "default:ingot_steel 2",
|
2017-05-14 23:50:37 +02:00
|
|
|
items = {
|
2017-05-17 23:48:21 +02:00
|
|
|
"default:sheet_graphite",
|
2017-05-17 23:04:53 +02:00
|
|
|
"default:ingot_wrought_iron 4",
|
2017-05-14 23:50:37 +02:00
|
|
|
}
|
|
|
|
})
|
|
|
|
|
|
|
|
crafting.register_craft(
|
|
|
|
{
|
2017-05-17 17:57:14 +02:00
|
|
|
output = "default:ingot_carbon_steel 2",
|
2017-05-14 23:50:37 +02:00
|
|
|
items = {
|
2017-05-17 23:48:21 +02:00
|
|
|
"default:sheet_graphite 2",
|
2017-05-17 17:57:14 +02:00
|
|
|
"default:ingot_wrought_iron 7",
|
2017-05-14 23:50:37 +02:00
|
|
|
}
|
|
|
|
})
|
|
|
|
|
|
|
|
crafting.register_craft(
|
|
|
|
{
|
2017-05-18 17:42:31 +02:00
|
|
|
output = "default:ingot_bronze 2",
|
2017-05-14 23:50:37 +02:00
|
|
|
items = {
|
2017-05-18 17:42:31 +02:00
|
|
|
"default:ingot_tin 2",
|
|
|
|
"default:ingot_copper 5",
|
2017-05-14 23:50:37 +02:00
|
|
|
}
|
|
|
|
})
|
|
|
|
|
|
|
|
-- Items
|
|
|
|
|
|
|
|
crafting.register_craft(
|
|
|
|
{
|
|
|
|
output = "default:rope 2",
|
|
|
|
items = {
|
|
|
|
"default:dry_grass 3",
|
|
|
|
}
|
|
|
|
})
|
|
|
|
|
|
|
|
crafting.register_craft(
|
|
|
|
{
|
|
|
|
output = "default:fiber 3",
|
|
|
|
items = {
|
|
|
|
"default:leaves 4",
|
|
|
|
}
|
|
|
|
})
|
|
|
|
|
|
|
|
crafting.register_craft(
|
|
|
|
{
|
|
|
|
output = "default:fiber",
|
|
|
|
items = {
|
2019-09-06 13:48:11 +02:00
|
|
|
"group:green_grass",
|
2017-05-14 23:50:37 +02:00
|
|
|
}
|
|
|
|
})
|
|
|
|
|
|
|
|
crafting.register_craft(
|
|
|
|
{
|
|
|
|
output = "default:stick 4",
|
|
|
|
items = {
|
|
|
|
"group:planks",
|
|
|
|
}
|
|
|
|
})
|
|
|
|
|
|
|
|
crafting.register_craft(
|
|
|
|
{
|
|
|
|
output = "default:flint 2",
|
|
|
|
items = {
|
|
|
|
"default:gravel",
|
|
|
|
}
|
|
|
|
})
|
|
|
|
|
|
|
|
crafting.register_craft(
|
|
|
|
{
|
|
|
|
output = "default:paper",
|
|
|
|
items = {
|
|
|
|
"default:papyrus 3",
|
|
|
|
}
|
|
|
|
})
|
|
|
|
|
|
|
|
crafting.register_craft(
|
|
|
|
{
|
|
|
|
output = "default:book",
|
|
|
|
items = {
|
|
|
|
"default:paper 3",
|
|
|
|
"default:stick",
|
|
|
|
"default:fiber",
|
|
|
|
}
|
|
|
|
})
|
|
|
|
|
|
|
|
crafting.register_craft(
|
|
|
|
{
|
|
|
|
output = "default:flint_and_steel",
|
|
|
|
items = {
|
|
|
|
"default:ingot_steel",
|
|
|
|
"default:fiber",
|
|
|
|
"default:flint",
|
|
|
|
}
|
|
|
|
})
|
|
|
|
|
|
|
|
crafting.register_craft(
|
|
|
|
{
|
|
|
|
output = "default:bucket",
|
|
|
|
items = {
|
|
|
|
"default:stick 2",
|
|
|
|
"default:fiber 4",
|
|
|
|
"group:planks 5",
|
|
|
|
}
|
|
|
|
})
|
|
|
|
|
|
|
|
-- Stone nodes
|
|
|
|
|
|
|
|
crafting.register_craft(
|
|
|
|
{
|
|
|
|
output = "default:gravel",
|
|
|
|
items = {
|
|
|
|
"default:cobble",
|
|
|
|
}
|
|
|
|
})
|
|
|
|
|
|
|
|
crafting.register_craft(
|
|
|
|
{
|
|
|
|
output = "default:brick 2",
|
|
|
|
items = {
|
|
|
|
"group:soil 5",
|
|
|
|
"default:gravel 4",
|
|
|
|
}
|
|
|
|
})
|
|
|
|
|
|
|
|
-- Block nodes
|
|
|
|
|
2017-05-17 17:57:14 +02:00
|
|
|
crafting.register_craft(
|
|
|
|
{
|
|
|
|
output = "default:block_wrought_iron",
|
|
|
|
items = {
|
|
|
|
"default:ingot_wrought_iron 9",
|
|
|
|
}
|
|
|
|
})
|
|
|
|
|
2017-05-14 23:50:37 +02:00
|
|
|
crafting.register_craft(
|
|
|
|
{
|
|
|
|
output = "default:block_steel",
|
|
|
|
items = {
|
|
|
|
"default:ingot_steel 9",
|
|
|
|
}
|
|
|
|
})
|
|
|
|
|
2017-05-17 17:57:14 +02:00
|
|
|
crafting.register_craft(
|
|
|
|
{
|
|
|
|
output = "default:block_carbon_steel",
|
|
|
|
items = {
|
|
|
|
"default:ingot_carbon_steel 9",
|
|
|
|
}
|
|
|
|
})
|
|
|
|
|
|
|
|
crafting.register_craft(
|
|
|
|
{
|
|
|
|
output = "default:block_bronze",
|
|
|
|
items = {
|
|
|
|
"default:ingot_bronze 9",
|
|
|
|
}
|
|
|
|
})
|
|
|
|
|
2017-05-14 23:50:37 +02:00
|
|
|
crafting.register_craft(
|
|
|
|
{
|
|
|
|
output = "default:block_coal",
|
|
|
|
items = {
|
|
|
|
"default:lump_coal 9",
|
|
|
|
}
|
|
|
|
})
|
|
|
|
|
|
|
|
-- Path nodes
|
|
|
|
|
|
|
|
crafting.register_craft(
|
|
|
|
{
|
|
|
|
output = "default:dirt_path 8",
|
|
|
|
items = {
|
|
|
|
"group:soil 3",
|
|
|
|
"default:gravel 6",
|
|
|
|
}
|
|
|
|
})
|
|
|
|
|
|
|
|
crafting.register_craft(
|
|
|
|
{
|
|
|
|
output = "default:path_slab",
|
|
|
|
items = {
|
2017-05-15 20:19:26 +02:00
|
|
|
"default:dirt_path",
|
2017-05-14 23:50:37 +02:00
|
|
|
}
|
|
|
|
})
|
|
|
|
|
|
|
|
crafting.register_craft(
|
|
|
|
{
|
|
|
|
output = "default:heated_dirt_path",
|
|
|
|
items = {
|
2017-05-16 19:47:12 +02:00
|
|
|
"default:dirt_path",
|
2017-05-17 17:57:14 +02:00
|
|
|
"default:ingot_wrought_iron",
|
2017-05-14 23:50:37 +02:00
|
|
|
}
|
|
|
|
})
|
|
|
|
|
|
|
|
-- Wood nodes
|
|
|
|
|
|
|
|
crafting.register_craft(
|
|
|
|
{
|
|
|
|
output = "default:planks 4",
|
|
|
|
items = {
|
|
|
|
"default:tree",
|
|
|
|
}
|
|
|
|
})
|
|
|
|
|
|
|
|
crafting.register_craft(
|
|
|
|
{
|
|
|
|
output = "default:planks_oak 4",
|
|
|
|
items = {
|
|
|
|
"default:tree_oak",
|
|
|
|
}
|
|
|
|
})
|
|
|
|
|
|
|
|
crafting.register_craft(
|
|
|
|
{
|
|
|
|
output = "default:planks_birch 4",
|
|
|
|
items = {
|
|
|
|
"default:tree_birch",
|
|
|
|
}
|
|
|
|
})
|
|
|
|
|
|
|
|
-- Frame nodes
|
|
|
|
|
|
|
|
crafting.register_craft(
|
|
|
|
{
|
|
|
|
output = "default:frame",
|
|
|
|
items = {
|
|
|
|
"default:fiber 8",
|
|
|
|
"default:stick 6",
|
|
|
|
"group:planks",
|
|
|
|
}
|
|
|
|
})
|
|
|
|
|
|
|
|
crafting.register_craft(
|
|
|
|
{
|
|
|
|
output = "default:reinforced_frame",
|
|
|
|
items = {
|
|
|
|
"default:fiber 8",
|
|
|
|
"default:stick 6",
|
|
|
|
"default:frame",
|
|
|
|
}
|
|
|
|
})
|
|
|
|
|
|
|
|
crafting.register_craft(
|
|
|
|
{
|
|
|
|
output = "default:reinforced_cobble",
|
|
|
|
items = {
|
|
|
|
"default:fiber 8",
|
|
|
|
"default:stick 6",
|
|
|
|
"default:cobble",
|
|
|
|
}
|
|
|
|
})
|
|
|
|
|
|
|
|
-- Fence nodes
|
|
|
|
|
|
|
|
crafting.register_craft(
|
|
|
|
{
|
|
|
|
output = "default:fence 4",
|
|
|
|
items = {
|
|
|
|
"default:planks",
|
|
|
|
"default:fiber 4",
|
2017-05-15 22:30:46 +02:00
|
|
|
"default:stick 4",
|
2017-05-14 23:50:37 +02:00
|
|
|
}
|
|
|
|
})
|
|
|
|
|
|
|
|
crafting.register_craft(
|
|
|
|
{
|
|
|
|
output = "default:fence_oak 4",
|
|
|
|
items = {
|
|
|
|
"default:planks_oak",
|
|
|
|
"default:stick 4",
|
|
|
|
"default:fiber 4",
|
|
|
|
}
|
|
|
|
})
|
|
|
|
|
|
|
|
crafting.register_craft(
|
|
|
|
{
|
|
|
|
output = "default:fence_birch 4",
|
|
|
|
items = {
|
|
|
|
"default:planks_birch",
|
|
|
|
"default:stick 4",
|
|
|
|
"default:fiber 4",
|
|
|
|
}
|
|
|
|
})
|
|
|
|
|
|
|
|
-- Misc nodes
|
|
|
|
|
|
|
|
crafting.register_craft(
|
|
|
|
{
|
|
|
|
output = "default:sign 2",
|
|
|
|
items = {
|
|
|
|
"group:planks",
|
|
|
|
"default:fiber 2",
|
|
|
|
"default:stick 2",
|
|
|
|
}
|
|
|
|
})
|
|
|
|
|
|
|
|
crafting.register_craft(
|
|
|
|
{
|
|
|
|
output = "default:torch 2",
|
|
|
|
items = {
|
|
|
|
"default:lump_coal",
|
|
|
|
"default:stick",
|
|
|
|
"default:fiber",
|
|
|
|
}
|
|
|
|
})
|
|
|
|
|
|
|
|
crafting.register_craft(
|
|
|
|
{
|
|
|
|
output = "default:torch_weak 2",
|
|
|
|
items = {
|
|
|
|
"default:stick",
|
|
|
|
"default:fiber",
|
|
|
|
}
|
|
|
|
})
|
|
|
|
|
|
|
|
crafting.register_craft(
|
|
|
|
{
|
|
|
|
output = "default:ladder 2",
|
|
|
|
items = {
|
|
|
|
"default:stick 5",
|
|
|
|
"default:fiber 2",
|
|
|
|
}
|
|
|
|
})
|
|
|
|
|
|
|
|
-- Tool nodes (chests, furnaces, bookshelves)
|
|
|
|
|
|
|
|
crafting.register_craft(
|
|
|
|
{
|
|
|
|
output = "default:chest",
|
|
|
|
items = {
|
|
|
|
"default:stick 12",
|
|
|
|
"default:fiber 8",
|
|
|
|
"group:planks 6",
|
|
|
|
}
|
|
|
|
})
|
|
|
|
|
|
|
|
crafting.register_craft(
|
|
|
|
{
|
|
|
|
output = "default:furnace",
|
|
|
|
items = {
|
|
|
|
"default:torch",
|
|
|
|
"group:stone 6",
|
|
|
|
}
|
|
|
|
})
|
|
|
|
|
|
|
|
crafting.register_craft(
|
|
|
|
{
|
|
|
|
output = "default:bookshelf",
|
|
|
|
items = {
|
|
|
|
"default:book 3",
|
|
|
|
"group:planks 6",
|
|
|
|
}
|
|
|
|
})
|
|
|
|
|
|
|
|
-- Sand nodes
|
|
|
|
|
|
|
|
crafting.register_craft(
|
|
|
|
{
|
|
|
|
output = "default:sandstone",
|
|
|
|
items = {
|
|
|
|
"default:sand 2",
|
|
|
|
}
|
|
|
|
})
|
|
|
|
|
|
|
|
crafting.register_craft(
|
|
|
|
{
|
|
|
|
output = "default:compressed_sandstone",
|
|
|
|
items = {
|
|
|
|
"default:sandstone 2",
|
|
|
|
}
|
|
|
|
})
|
|
|
|
|
|
|
|
-- Agriculture nodes
|
|
|
|
|
|
|
|
crafting.register_craft(
|
|
|
|
{
|
|
|
|
output = "default:fertilizer",
|
|
|
|
items = {
|
2017-05-17 23:48:21 +02:00
|
|
|
"default:fern 4",
|
|
|
|
"default:fiber 3",
|
|
|
|
}
|
|
|
|
})
|
|
|
|
|
|
|
|
crafting.register_craft(
|
|
|
|
{
|
|
|
|
output = "default:fertilizer 2",
|
|
|
|
items = {
|
|
|
|
"default:lump_sulfur 3",
|
|
|
|
"default:fiber 3",
|
2017-05-14 23:50:37 +02:00
|
|
|
}
|
|
|
|
})
|
|
|
|
|
|
|
|
default.log("recipes", "loaded")
|