feat(quartz): add support for quartz block

This commit is contained in:
scr267 2024-07-15 22:44:24 -04:00
parent 0a5c0a92ca
commit 9fee803826

View File

@ -100,6 +100,19 @@ else
minetest.log("error", "[embedded_lights] The default mod is not loaded. The overlay node will not be registered.") minetest.log("error", "[embedded_lights] The default mod is not loaded. The overlay node will not be registered.")
end end
-- Add embedded pot lights for default nodes.
if minetest.get_modpath("quartz") then
local modifymod = "quartz"
local default_nodes = {
{mod = modifymod, node = "block"}
}
for _, potlight in ipairs(potlight_array) do
for _, default_node in ipairs(default_nodes) do
create_overlay_node(default_node.mod .. ":" .. default_node.node, potlight.image, potlight.color, modname .. ":" .. modifymod .. "_" .. default_node.node .. "_" .. potlight.color .. "_pot_light")
end
end
end
-- Add embedded pot lights for bakedclay nodes. -- Add embedded pot lights for bakedclay nodes.
if minetest.get_modpath("bakedclay") then if minetest.get_modpath("bakedclay") then
local modifymod = "bakedclay" local modifymod = "bakedclay"