diff --git a/mods/decoblocks/lantern.lua b/mods/decoblocks/lantern.lua index ae51f4e..0d511de 100644 --- a/mods/decoblocks/lantern.lua +++ b/mods/decoblocks/lantern.lua @@ -82,6 +82,27 @@ minetest.register_node("decoblocks:lantern", { end }) +minetest.register_abm({ + nodenames = {"decoblocks:lantern"}, + interval = 5, + chance = 1, + action = function(pos, node) + minetest.add_particle({ + pos = {x=pos.x, y=pos.y, z=pos.z}, + velocity = {x=0, y=0, z=0}, + acceleration = {x=0, y=0, z=0}, + expirationtime = 5, + size = 25, + collisiondetection = false, + collisionremoval = false, + vertical = true, + texture = "decoblocks_glow.png", + animation = {type = "vertical_frames", aspect_w = 32, aspect_h = 32, length = 2.00}, + glow = 9 + }) + end +}) + minetest.register_node("decoblocks:lantern_wall", { drawtype = "mesh", mesh = "lantern_wall.obj",