Bug fixes with recipes and some nodes

This commit is contained in:
JoseDouglas26 2024-05-04 14:46:40 -03:00
parent c125013528
commit 73f96ed5f3
2 changed files with 19 additions and 12 deletions

View File

@ -90,8 +90,6 @@ end
mcl_copper.register_variants_recipes("cut", "block", 4) mcl_copper.register_variants_recipes("cut", "block", 4)
mcl_copper.register_variants_recipes("grate", "block", 4) mcl_copper.register_variants_recipes("grate", "block", 4)
mcl_copper.register_variants_recipes("door", "block", 3)
mcl_copper.register_variants_recipes("trapdoor", "block", 2)
mcl_copper.register_variants_recipes("bulb_off", "block", 4) mcl_copper.register_variants_recipes("bulb_off", "block", 4)
local chiseled_materials = { local chiseled_materials = {
@ -152,9 +150,9 @@ local cuttable_blocks = {
for _, c in ipairs(cuttable_blocks) do for _, c in ipairs(cuttable_blocks) do
mcl_stonecutter.register_recipe("mcl_copper:"..c, "mcl_copper:"..c.."_cut", 4) mcl_stonecutter.register_recipe("mcl_copper:"..c, "mcl_copper:"..c.."_cut", 4)
mcl_stonecutter.register_recipe("mcl_copper:"..c, "mcl_copper:"..c:gsub("block", "grate"), 4) --mcl_stonecutter.register_recipe("mcl_copper:"..c, "mcl_copper:"..c:gsub("block", "grate"), 4)
mcl_stonecutter.register_recipe("mcl_copper:"..c, "mcl_copper:"..c:gsub("block", "chiseled"), 4) --mcl_stonecutter.register_recipe("mcl_copper:"..c, "mcl_copper:"..c:gsub("block", "chiseled"), 4)
mcl_stonecutter.register_recipe("mcl_copper:"..c.."_cut", "mcl_copper:"..c:gsub("block", "chiseled")) --mcl_stonecutter.register_recipe("mcl_copper:"..c.."_cut", "mcl_copper:"..c:gsub("block", "chiseled"))
end end
minetest.register_craft({ minetest.register_craft({

View File

@ -61,7 +61,7 @@ local function set_tiles(tiles, index)
end end
function mcl_copper.register_copper_variants(name, definitions) function mcl_copper.register_copper_variants(name, definitions)
local names, oxidized_variant, stripped_variant, waxed_variant local names, oxidized_variant, stripped_variant, waxed_variant, tiles
if name ~= "cut" then if name ~= "cut" then
names = { names = {
@ -79,12 +79,21 @@ function mcl_copper.register_copper_variants(name, definitions)
} }
end end
local tiles = { if name == "block" then
"mcl_copper_"..name..".png", tiles = {
"mcl_copper_"..name.."_exposed.png", "mcl_copper_block.png",
"mcl_copper_"..name.."_weathered.png", "mcl_copper_exposed.png",
"mcl_copper_"..name.."_oxidized.png" "mcl_copper_weathered.png",
} "mcl_copper_oxidized.png"
}
else
tiles = {
"mcl_copper_block_"..name..".png",
"mcl_copper_exposed_"..name..".png",
"mcl_copper_weathered_"..name..".png",
"mcl_copper_oxidized_"..name..".png"
}
end
for i = 1, #names do for i = 1, #names do
if names[i]:find("waxed") then if names[i]:find("waxed") then