glowing particles

master
Juraj Vajda 2018-12-02 21:51:34 -05:00
parent 8aa6a196b4
commit cf724ee381
2 changed files with 3 additions and 2 deletions

View File

@ -55,6 +55,7 @@ function obsidianmese.add_effects(pos)
minsize = .5,
maxsize = 1.5,
texture = "obsidianmese_chest_particle.png",
glow = 7
})
end

View File

@ -64,7 +64,7 @@ function obsidianmese.register_chest(name, d)
def.paramtype2 = "facedir"
def.legacy_facedir_simple = true
def.is_ground_content = false
def.on_construct = function(pos)
local meta = minetest.get_meta(pos)
meta:set_string("infotext", "Obsidian Mese Chest")
@ -100,7 +100,7 @@ function obsidianmese.register_chest(name, d)
local meta = minetest.get_meta(pos)
local id_effect = meta:get_int("id_effect")
local player_near = obsidianmese.check_around_radius(pos)
-- delete particles
if id_effect and id_effect ~= -1 and not player_near then
minetest.delete_particlespawner(id_effect)