mirror of
https://git.minetest.land/VoxeLibre/VoxeLibre.git
synced 2024-11-08 01:01:06 +01:00
Bug fixes with recipes and some nodes
This commit is contained in:
parent
c125013528
commit
73f96ed5f3
2 changed files with 19 additions and 12 deletions
|
@ -90,8 +90,6 @@ end
|
|||
|
||||
mcl_copper.register_variants_recipes("cut", "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)
|
||||
|
||||
local chiseled_materials = {
|
||||
|
@ -152,9 +150,9 @@ local cuttable_blocks = {
|
|||
|
||||
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: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.."_cut", "mcl_copper:"..c:gsub("block", "chiseled"))
|
||||
--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.."_cut", "mcl_copper:"..c:gsub("block", "chiseled"))
|
||||
end
|
||||
|
||||
minetest.register_craft({
|
||||
|
|
|
@ -61,7 +61,7 @@ local function set_tiles(tiles, index)
|
|||
end
|
||||
|
||||
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
|
||||
names = {
|
||||
|
@ -79,12 +79,21 @@ function mcl_copper.register_copper_variants(name, definitions)
|
|||
}
|
||||
end
|
||||
|
||||
local tiles = {
|
||||
"mcl_copper_"..name..".png",
|
||||
"mcl_copper_"..name.."_exposed.png",
|
||||
"mcl_copper_"..name.."_weathered.png",
|
||||
"mcl_copper_"..name.."_oxidized.png"
|
||||
}
|
||||
if name == "block" then
|
||||
tiles = {
|
||||
"mcl_copper_block.png",
|
||||
"mcl_copper_exposed.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
|
||||
if names[i]:find("waxed") then
|
||||
|
|
Loading…
Reference in a new issue