mirror of
https://git.minetest.land/VoxeLibre/VoxeLibre.git
synced 2024-11-22 18:41:09 +01:00
local totem particle position
This commit is contained in:
parent
0795862c5c
commit
ee2fa60cae
1 changed files with 2 additions and 1 deletions
|
@ -72,8 +72,9 @@ mcl_damage.register_modifier(function(obj, damage, reason)
|
||||||
minetest.after(0.1, function()
|
minetest.after(0.1, function()
|
||||||
local new_pos = obj:get_pos()
|
local new_pos = obj:get_pos()
|
||||||
if not new_pos then return end
|
if not new_pos then return end
|
||||||
|
local particlepos = {x = new_pos.x, y = new_pos.y + 1, z = new_pos.z}
|
||||||
for i = 1, 150 do
|
for i = 1, 150 do
|
||||||
minetest.add_entity({x = new_pos.x, y = new_pos.y + 1, z = new_pos.z}, "mcl_totems:totem_particle")
|
minetest.add_entity(particlepos, "mcl_totems:totem_particle")
|
||||||
end
|
end
|
||||||
end)
|
end)
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue