diff --git a/init.lua b/init.lua index 5b3bb57..9ac7d6a 100644 --- a/init.lua +++ b/init.lua @@ -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}, }, })