forked from mtcontrib/scifi_nodes
add slat
support
This commit is contained in:
12
nodes.lua
12
nodes.lua
@ -1,5 +1,6 @@
|
||||
local has_unifieddyes_mod = minetest.get_modpath("unifieddyes")
|
||||
local has_moreblocks_mod = minetest.get_modpath("moreblocks")
|
||||
local has_slats_mod = minetest.get_modpath("slats")
|
||||
|
||||
--nodes
|
||||
|
||||
@ -616,4 +617,15 @@ for name, def in pairs(nodes) do
|
||||
sounds = sounds,
|
||||
})
|
||||
end
|
||||
|
||||
if has_slats_mod and def.slat then
|
||||
slats.register_slat(
|
||||
name,
|
||||
"scifi_nodes:" .. name,
|
||||
node_def.groups,
|
||||
"scifi_nodes_" .. name .. ".png^slats_slat_overlay.png^[makealpha:255,126,126",
|
||||
def.description .. " Slat",
|
||||
sounds
|
||||
)
|
||||
end
|
||||
end
|
||||
|
Reference in New Issue
Block a user