Transférer les fichiers vers ''

This commit is contained in:
Z-Master 2022-12-18 21:45:08 +00:00
parent a0adbb6c06
commit 736857a10b

View file

@ -398,7 +398,7 @@ minetest.register_node( "pride_flags:upper_mast", {
tiles = { "pride_flags_baremetal.png", "pride_flags_baremetal.png" },
wield_image = "pride_flags_pole_top_inv.png",
inventory_image = "pride_flags_pole_top_inv.png",
groups = { cracky = 2 },
groups = { cracky = 2, handy = 1 },
sounds = metal_sounds,
is_ground_content = false,
@ -578,21 +578,29 @@ minetest.register_lbm({
end
})
if minetest.get_modpath("default") then
local iron = "default:steel_ingot"
local wool = "group:wool"
if minetest.get_modpath("mcl_core") ~= nil then
iron = "mcl_core:iron_ingot"
wool = "mcl_wool:white"
end
if minetest.get_modpath("default") or minetest.get_modpath("mcl_core") then
minetest.register_craft({
output = "pride_flags:lower_mast 6",
recipe = {
{"default:steel_ingot"},
{"default:steel_ingot"},
{"default:steel_ingot"},
{iron},
{iron},
{iron},
},
})
end
minetest.register_craft({
output = "pride_flags:upper_mast",
recipe = {
{"pride_flags:lower_mast", "group:wool", "group:wool"},
{"pride_flags:lower_mast", "group:wool", "group:wool"},
{"pride_flags:lower_mast", wool, wool},
{"pride_flags:lower_mast", wool, wool},
},
})