glowing particles
parent
8aa6a196b4
commit
cf724ee381
1
api.lua
1
api.lua
|
@ -55,6 +55,7 @@ function obsidianmese.add_effects(pos)
|
||||||
minsize = .5,
|
minsize = .5,
|
||||||
maxsize = 1.5,
|
maxsize = 1.5,
|
||||||
texture = "obsidianmese_chest_particle.png",
|
texture = "obsidianmese_chest_particle.png",
|
||||||
|
glow = 7
|
||||||
})
|
})
|
||||||
end
|
end
|
||||||
|
|
||||||
|
|
|
@ -64,7 +64,7 @@ function obsidianmese.register_chest(name, d)
|
||||||
def.paramtype2 = "facedir"
|
def.paramtype2 = "facedir"
|
||||||
def.legacy_facedir_simple = true
|
def.legacy_facedir_simple = true
|
||||||
def.is_ground_content = false
|
def.is_ground_content = false
|
||||||
|
|
||||||
def.on_construct = function(pos)
|
def.on_construct = function(pos)
|
||||||
local meta = minetest.get_meta(pos)
|
local meta = minetest.get_meta(pos)
|
||||||
meta:set_string("infotext", "Obsidian Mese Chest")
|
meta:set_string("infotext", "Obsidian Mese Chest")
|
||||||
|
@ -100,7 +100,7 @@ function obsidianmese.register_chest(name, d)
|
||||||
local meta = minetest.get_meta(pos)
|
local meta = minetest.get_meta(pos)
|
||||||
local id_effect = meta:get_int("id_effect")
|
local id_effect = meta:get_int("id_effect")
|
||||||
local player_near = obsidianmese.check_around_radius(pos)
|
local player_near = obsidianmese.check_around_radius(pos)
|
||||||
|
|
||||||
-- delete particles
|
-- delete particles
|
||||||
if id_effect and id_effect ~= -1 and not player_near then
|
if id_effect and id_effect ~= -1 and not player_near then
|
||||||
minetest.delete_particlespawner(id_effect)
|
minetest.delete_particlespawner(id_effect)
|
||||||
|
|
Loading…
Reference in New Issue