New stonecutter recipes

This commit is contained in:
JoseDouglas26 2024-04-19 05:42:20 +00:00
parent a0bd3b8695
commit 1568e50e3c
1 changed files with 18 additions and 8 deletions

View File

@ -1,6 +1,7 @@
for i = 1, #mcl_hollow_logs.logs do
for _, defs in pairs(mcl_hollow_logs.logs) do
local mod, material, stripped_material
local name = mcl_hollow_logs.logs[i][1]
local name = defs[1]
local stripped_name = defs[2]
if name:find("cherry") then
mod = "mcl_cherry_blossom:"
@ -11,11 +12,7 @@ for i = 1, #mcl_hollow_logs.logs do
end
material = mod..name
stripped_material = mod.."stripped_"..name
if name:find("mangrove") then
stripped_material = "mcl_mangrove:mangrove_stripped"
end
stripped_material = mod..stripped_name
minetest.register_craft({
output = "mcl_hollow_logs:"..name.."_hollow 4",
@ -26,14 +23,19 @@ for i = 1, #mcl_hollow_logs.logs do
}
})
mcl_stonecutter.register_recipe(material, "mcl_hollow_logs:"..name.."_hollow", 1)
mcl_stonecutter.register_recipe(material, "mcl_hollow_logs:"..stripped_name.."_hollow", 1)
minetest.register_craft({
output = "mcl_hollow_logs:stripped_"..name.."_hollow 4",
output = "mcl_hollow_logs:"..stripped_name.."_hollow 4",
recipe = {
{"", stripped_material, ""},
{stripped_material, "", stripped_material},
{"", stripped_material, ""}
}
})
mcl_stonecutter.register_recipe(stripped_material, "mcl_hollow_logs:"..stripped_name.."_hollow", 1)
end
if minetest.get_modpath("mcl_crimson") then
@ -46,6 +48,8 @@ if minetest.get_modpath("mcl_crimson") then
}
})
mcl_stonecutter.register_recipe("mcl_crimson:crimson_hyphae", "mcl_hollow_logs:crimson_hyphae_hollow", 1)
minetest.register_craft({
output = "mcl_crimson:stripped_crimson_hyphae_hollow 4",
recipe = {
@ -55,6 +59,8 @@ if minetest.get_modpath("mcl_crimson") then
}
})
mcl_stonecutter.register_recipe("mcl_crimson:stripped_crimson_hyphae", "mcl_hollow_logs:stripped_crimson_hyphae_hollow", 1)
minetest.register_craft({
output = "mcl_crimson:warped_hyphae_hollow 4",
recipe = {
@ -64,6 +70,8 @@ if minetest.get_modpath("mcl_crimson") then
}
})
mcl_stonecutter.register_recipe("mcl_crimson:warped_hyphae", "mcl_hollow_logs:warped_hyphae_hollow", 1)
minetest.register_craft({
output = "mcl_crimson:stripped_warped_hyphae_hollow 4",
recipe = {
@ -72,6 +80,8 @@ if minetest.get_modpath("mcl_crimson") then
{"", "mcl_crimson:stripped_warped_hyphae", ""}
}
})
mcl_stonecutter.register_recipe("mcl_crimson:stripped_warped_hyphae", "mcl_hollow_logs:stripped_warped_hyphae_hollow", 1)
end
minetest.register_craft({