VoxeLibre/mods/ITEMS/mcl_copper/crafting.lua

102 lines
2.7 KiB
Lua
Raw Permalink Normal View History

2022-05-01 03:11:51 +02:00
minetest.register_craft({
output = "mcl_copper:block_raw",
recipe = {
{ "mcl_copper:raw_copper", "mcl_copper:raw_copper", "mcl_copper:raw_copper" },
{ "mcl_copper:raw_copper", "mcl_copper:raw_copper", "mcl_copper:raw_copper" },
{ "mcl_copper:raw_copper", "mcl_copper:raw_copper", "mcl_copper:raw_copper" },
},
2022-05-01 03:11:51 +02:00
})
2022-05-01 03:11:51 +02:00
minetest.register_craft({
output = "mcl_copper:block",
recipe = {
{ "mcl_copper:copper_ingot", "mcl_copper:copper_ingot", "mcl_copper:copper_ingot" },
{ "mcl_copper:copper_ingot", "mcl_copper:copper_ingot", "mcl_copper:copper_ingot" },
{ "mcl_copper:copper_ingot", "mcl_copper:copper_ingot", "mcl_copper:copper_ingot" },
},
2022-05-01 03:11:51 +02:00
})
2022-05-01 03:11:51 +02:00
minetest.register_craft({
output = "mcl_copper:block_cut 4",
recipe = {
{ "mcl_copper:block", "mcl_copper:block" },
{ "mcl_copper:block", "mcl_copper:block" },
},
2022-05-01 03:11:51 +02:00
})
2022-05-01 03:11:51 +02:00
minetest.register_craft({
output = "mcl_copper:block_exposed_cut 4",
recipe = {
{ "mcl_copper:block_exposed", "mcl_copper:block_exposed" },
{ "mcl_copper:block_exposed", "mcl_copper:block_exposed" },
},
2022-05-01 03:11:51 +02:00
})
2022-05-01 03:11:51 +02:00
minetest.register_craft({
output = "mcl_copper:block_oxidized_cut 4",
recipe = {
{ "mcl_copper:block_oxidized", "mcl_copper:block_oxidized" },
{ "mcl_copper:block_oxidized", "mcl_copper:block_oxidized" },
},
2022-05-01 03:11:51 +02:00
})
2022-05-01 03:11:51 +02:00
minetest.register_craft({
output = "mcl_copper:block_weathered_cut 4",
2022-05-01 03:11:51 +02:00
recipe = {
{ "mcl_copper:block_weathered", "mcl_copper:block_weathered" },
{ "mcl_copper:block_weathered", "mcl_copper:block_weathered" },
},
2022-05-01 03:11:51 +02:00
})
2022-11-15 22:02:05 +01:00
local waxable_blocks = { "block", "block_cut", "block_exposed", "block_exposed_cut", "block_weathered", "block_weathered_cut", "block_oxidized", "block_oxidized_cut" }
for _, w in ipairs(waxable_blocks) do
minetest.register_craft({
output = "mcl_copper:waxed_"..w,
recipe = {
{ "mcl_copper:"..w, "mcl_honey:honeycomb" },
},
})
end
2023-11-13 21:19:09 +01:00
local cuttable_blocks = { "block", "waxed_block", "block_exposed", "waxed_block_exposed", "block_weathered", "waxed_block_weathered", "block_oxidized", "waxed_block_oxidized" }
2023-11-26 00:47:02 +01:00
for _, c in ipairs(cuttable_blocks) do
mcl_stonecutter.register_recipe("mcl_copper:"..c, "mcl_copper:"..c.."_cut", 4)
2023-11-13 21:19:09 +01:00
end
2022-05-01 03:11:51 +02:00
minetest.register_craft({
output = "mcl_copper:copper_ingot 9",
2022-05-01 03:11:51 +02:00
recipe = {
{ "mcl_copper:block" },
},
2022-05-01 03:11:51 +02:00
})
2022-05-01 03:11:51 +02:00
minetest.register_craft({
output = "mcl_copper:raw_copper 9",
recipe = {
{ "mcl_copper:block_raw" },
},
2022-05-01 03:11:51 +02:00
})
2022-05-01 03:11:51 +02:00
minetest.register_craft({
type = "cooking",
output = "mcl_copper:copper_ingot",
recipe = "mcl_copper:raw_copper",
cooktime = 10,
})
2022-05-01 03:11:51 +02:00
minetest.register_craft({
type = "cooking",
output = "mcl_copper:copper_ingot",
recipe = "mcl_copper:stone_with_copper",
cooktime = 10,
2022-11-15 22:02:05 +01:00
})
minetest.register_craft({
type = "cooking",
output = "mcl_copper:block",
recipe = "mcl_copper:block_raw",
cooktime = 90,
})