1
0
Fork 0

Spaces to tabs

This commit is contained in:
the-real-herowl 2024-04-30 03:55:17 +02:00
parent ee2998e21b
commit a25e2b8eb3
1 changed files with 33 additions and 33 deletions

View File

@ -1,48 +1,48 @@
function vl_hollow_logs.register_craft(material, result) function vl_hollow_logs.register_craft(material, result)
minetest.register_craft({ minetest.register_craft({
output = "vl_hollow_logs:"..result.."_hollow 4", output = "vl_hollow_logs:"..result.."_hollow 4",
recipe = { recipe = {
{"", material, ""}, {"", material, ""},
{material, "", material}, {material, "", material},
{"", material, ""} {"", material, ""}
}, },
type = "shaped" type = "shaped"
}) })
mcl_stonecutter.register_recipe(material, "vl_hollow_logs:"..result.."_hollow", 1) mcl_stonecutter.register_recipe(material, "vl_hollow_logs:"..result.."_hollow", 1)
end end
for _, defs in pairs(vl_hollow_logs.logs) do for _, defs in pairs(vl_hollow_logs.logs) do
local mod, material, stripped_material local mod, material, stripped_material
local name = defs[1] local name = defs[1]
local stripped_name = defs[2] local stripped_name = defs[2]
if name:find("cherry") then if name:find("cherry") then
mod = "mcl_cherry_blossom:" mod = "mcl_cherry_blossom:"
elseif name:find("mangrove") then elseif name:find("mangrove") then
mod = "mcl_mangrove:" mod = "mcl_mangrove:"
elseif name:find("hyphae") then elseif name:find("hyphae") then
mod = "mcl_crimson:" mod = "mcl_crimson:"
else else
mod = "mcl_core:" mod = "mcl_core:"
end end
material = mod..name material = mod..name
stripped_material = mod..stripped_name stripped_material = mod..stripped_name
vl_hollow_logs.register_craft(material, name) vl_hollow_logs.register_craft(material, name)
vl_hollow_logs.register_craft(stripped_material, stripped_name) vl_hollow_logs.register_craft(stripped_material, stripped_name)
end end
minetest.register_craft({ minetest.register_craft({
burntime = 10, burntime = 10,
recipe = "group:hollow_log_burnable", recipe = "group:hollow_log_burnable",
type = "fuel", type = "fuel",
}) })
minetest.register_craft({ minetest.register_craft({
cooktime = 5, cooktime = 5,
output = "mcl_core:charcoal_lump", output = "mcl_core:charcoal_lump",
recipe = "group:hollow_log_burnable", recipe = "group:hollow_log_burnable",
type = "cooking" type = "cooking"
}) })