2024-03-08 23:36:16 +01:00
|
|
|
for i = 1, #mcl_hollow_logs.logs do
|
2024-03-08 01:08:25 +01:00
|
|
|
local mod, material, stripped_material
|
2024-03-08 23:36:16 +01:00
|
|
|
local name = mcl_hollow_logs.logs[i][1]
|
2024-03-04 16:07:53 +01:00
|
|
|
|
2024-03-08 01:08:25 +01:00
|
|
|
if name:find("cherry") then
|
|
|
|
mod = "mcl_cherry_blossom:"
|
|
|
|
elseif name:find("mangrove") then
|
|
|
|
mod = "mcl_mangrove:"
|
|
|
|
else
|
|
|
|
mod = "mcl_core:"
|
|
|
|
end
|
2024-03-04 16:07:53 +01:00
|
|
|
|
2024-03-08 01:08:25 +01:00
|
|
|
material = mod..name
|
|
|
|
stripped_material = mod.."stripped_"..name
|
2024-03-04 16:07:53 +01:00
|
|
|
|
2024-03-08 01:08:25 +01:00
|
|
|
if name:find("mangrove") then
|
|
|
|
stripped_material = "mcl_mangrove:mangrove_stripped"
|
|
|
|
end
|
2024-03-04 16:07:53 +01:00
|
|
|
|
|
|
|
minetest.register_craft({
|
2024-03-08 23:36:16 +01:00
|
|
|
output = "mcl_hollow_logs:"..name.."_hollow 4",
|
2024-03-04 16:07:53 +01:00
|
|
|
recipe = {
|
2024-03-08 01:08:25 +01:00
|
|
|
{"", material, ""},
|
|
|
|
{material, "", material},
|
|
|
|
{"", material, ""}
|
2024-03-04 16:07:53 +01:00
|
|
|
}
|
|
|
|
})
|
|
|
|
|
|
|
|
minetest.register_craft({
|
2024-03-08 23:36:16 +01:00
|
|
|
output = "mcl_hollow_logs:stripped_"..name.."_hollow 4",
|
2024-03-04 16:07:53 +01:00
|
|
|
recipe = {
|
2024-03-08 01:08:25 +01:00
|
|
|
{"", stripped_material, ""},
|
|
|
|
{stripped_material, "", stripped_material},
|
|
|
|
{"", stripped_material, ""}
|
2024-03-04 16:07:53 +01:00
|
|
|
}
|
|
|
|
})
|
|
|
|
end
|
|
|
|
|
|
|
|
if minetest.get_modpath("mcl_crimson") then
|
|
|
|
minetest.register_craft({
|
2024-03-08 01:08:25 +01:00
|
|
|
output = "mcl_crimson:crimson_hyphae_hollow 4",
|
2024-03-04 16:07:53 +01:00
|
|
|
recipe = {
|
|
|
|
{"", "mcl_crimson:crimson_hyphae", ""},
|
|
|
|
{"mcl_crimson:crimson_hyphae", "", "mcl_crimson:crimson_hyphae"},
|
|
|
|
{"", "mcl_crimson:crimson_hyphae", ""}
|
|
|
|
}
|
|
|
|
})
|
|
|
|
|
|
|
|
minetest.register_craft({
|
2024-03-08 01:08:25 +01:00
|
|
|
output = "mcl_crimson:stripped_crimson_hyphae_hollow 4",
|
2024-03-04 16:07:53 +01:00
|
|
|
recipe = {
|
|
|
|
{"", "mcl_crimson:stripped_crimson_hyphae", ""},
|
|
|
|
{"mcl_crimson:stripped_crimson_hyphae", "", "mcl_crimson:stripped_crimson_hyphae"},
|
|
|
|
{"", "mcl_crimson:stripped_crimson_hyphae", ""}
|
|
|
|
}
|
|
|
|
})
|
|
|
|
|
|
|
|
minetest.register_craft({
|
2024-03-08 01:08:25 +01:00
|
|
|
output = "mcl_crimson:warped_hyphae_hollow 4",
|
2024-03-04 16:07:53 +01:00
|
|
|
recipe = {
|
|
|
|
{"", "mcl_crimson:warped_hyphae", ""},
|
|
|
|
{"mcl_crimson:warped_hyphae", "", "mcl_crimson:warped_hyphae"},
|
|
|
|
{"", "mcl_crimson:warped_hyphae", ""}
|
|
|
|
}
|
|
|
|
})
|
|
|
|
|
|
|
|
minetest.register_craft({
|
2024-03-08 01:08:25 +01:00
|
|
|
output = "mcl_crimson:stripped_warped_hyphae_hollow 4",
|
2024-03-04 16:07:53 +01:00
|
|
|
recipe = {
|
|
|
|
{"", "mcl_crimson:stripped_warped_hyphae", ""},
|
|
|
|
{"mcl_crimson:stripped_warped_hyphae", "", "mcl_crimson:stripped_warped_hyphae"},
|
|
|
|
{"", "mcl_crimson:stripped_warped_hyphae", ""}
|
|
|
|
}
|
|
|
|
})
|
|
|
|
end
|
|
|
|
|
|
|
|
minetest.register_craft({
|
|
|
|
burntime = 10,
|
|
|
|
recipe = "group:hollow_log",
|
|
|
|
type = "fuel",
|
|
|
|
})
|
|
|
|
|
|
|
|
minetest.register_craft({
|
|
|
|
cooktime = 5,
|
|
|
|
output = "mcl_core:charcoal_lump",
|
|
|
|
recipe = "group:hollow_log",
|
|
|
|
type = "cooking"
|
|
|
|
})
|