forked from mtcontrib/homedecor_modpack
removed obsolete glowlight ABMs
This commit is contained in:
parent
428729a43d
commit
1ce7d2b24d
@ -9,57 +9,8 @@ local function N_(x) return x end
|
|||||||
local colors = { N_("yellow"), N_("white") }
|
local colors = { N_("yellow"), N_("white") }
|
||||||
|
|
||||||
for i in ipairs(colors) do
|
for i in ipairs(colors) do
|
||||||
|
|
||||||
local color = colors[i]
|
local color = colors[i]
|
||||||
|
|
||||||
minetest.register_abm({
|
|
||||||
nodenames = { "homedecor:glowlight_thin_"..color },
|
|
||||||
interval = 1,
|
|
||||||
chance = 1,
|
|
||||||
action = function(pos, node, active_object_count, active_object_count_wider)
|
|
||||||
minetest.set_node(pos, {name = "homedecor:glowlight_quarter_"..color, param2 = 20})
|
|
||||||
end,
|
|
||||||
})
|
|
||||||
|
|
||||||
minetest.register_abm({
|
|
||||||
nodenames = { "homedecor:glowlight_thick_"..color },
|
|
||||||
interval = 1,
|
|
||||||
chance = 1,
|
|
||||||
action = function(pos, node, active_object_count, active_object_count_wider)
|
|
||||||
minetest.set_node(pos, {name = "homedecor:glowlight_half_"..color, param2 = 20})
|
|
||||||
end,
|
|
||||||
})
|
|
||||||
|
|
||||||
minetest.register_abm({
|
|
||||||
nodenames = { "homedecor:glowlight_thin_"..color.."_wall" },
|
|
||||||
interval = 1,
|
|
||||||
chance = 1,
|
|
||||||
action = function(pos, node, active_object_count, active_object_count_wider)
|
|
||||||
local fdir = node.param2 or 0
|
|
||||||
local nfdir = dirs2[fdir+1]
|
|
||||||
minetest.set_node(pos, {name = "homedecor:glowlight_quarter_"..color, param2 = nfdir})
|
|
||||||
end,
|
|
||||||
})
|
|
||||||
|
|
||||||
minetest.register_abm({
|
|
||||||
nodenames = { "homedecor:glowlight_thick_"..color.."_wall" },
|
|
||||||
interval = 1,
|
|
||||||
chance = 1,
|
|
||||||
action = function(pos, node, active_object_count, active_object_count_wider)
|
|
||||||
local fdir = node.param2 or 0
|
|
||||||
local nfdir = dirs2[fdir+1]
|
|
||||||
minetest.set_node(pos, {name = "homedecor:glowlight_half_"..color, param2 = nfdir})
|
|
||||||
end,
|
|
||||||
})
|
|
||||||
|
|
||||||
minetest.register_abm({
|
|
||||||
nodenames = { "homedecor:glowlight_small_cube_"..color.."_ceiling" },
|
|
||||||
interval = 1,
|
|
||||||
chance = 1,
|
|
||||||
action = function(pos, node, active_object_count, active_object_count_wider)
|
|
||||||
minetest.set_node(pos, {name = "homedecor:glowlight_small_cube_"..color, param2 = 20})
|
|
||||||
end,
|
|
||||||
})
|
|
||||||
|
|
||||||
local glowlight_nodebox = {
|
local glowlight_nodebox = {
|
||||||
half = homedecor.nodebox.slab_y(1/2),
|
half = homedecor.nodebox.slab_y(1/2),
|
||||||
quarter = homedecor.nodebox.slab_y(1/4),
|
quarter = homedecor.nodebox.slab_y(1/4),
|
||||||
|
Loading…
Reference in New Issue
Block a user