diff --git a/mods/mcl_fire/init.lua b/mods/mcl_fire/init.lua index c3cfde332..5f5b5e38e 100644 --- a/mods/mcl_fire/init.lua +++ b/mods/mcl_fire/init.lua @@ -209,11 +209,25 @@ end function mcl_fire.add_fire(pos) local null = {x=0, y=0, z=0} pos.y = pos.y+0.19 - minetest.add_particle(pos, null, null, 1.1, - 1.5, true, "default_fire_particle"..tostring(math.random(1,2)) ..".png") + minetest.add_particle({ + pos = pos, + velocity = null, + acceleration = null, + expirationtime = 1.1, + size = 1.5, + collisiondetection = true, + texture = "default_fire_particle"..tostring(math.random(1,2)) ..".png" + }) pos.y = pos.y +0.01 - minetest.add_particle(pos, null, null, 0.8, - 1.5, true, "default_fire_particle"..tostring(math.random(1,2)) ..".png") + minetest.add_particle({ + pos = pos, + velocity = null, + acceleration = null, + expirationtime = 0.8, + size = 1.5, + collisiondetection = true, + texture = "default_fire_particle"..tostring(math.random(1,2)) ..".png" + }) end dofile(minetest.get_modpath(minetest.get_current_modname()).."/flint_and_steel.lua") diff --git a/mods/mcl_tnt/init.lua b/mods/mcl_tnt/init.lua index a08e68e45..83c0a28f7 100644 --- a/mods/mcl_tnt/init.lua +++ b/mods/mcl_tnt/init.lua @@ -77,7 +77,15 @@ end function TNT:on_step(dtime) local pos = self.object:getpos() - minetest.add_particle({x=pos.x,y=pos.y+0.5,z=pos.z}, {x=math.random(-.1,.1),y=math.random(1,2),z=math.random(-.1,.1)}, {x=0,y=-0.1,z=0}, math.random(.5,1),math.random(1,2), false, "tnt_smoke.png") + minetest.add_particle({ + pos = {x=pos.x,y=pos.y+0.5,z=pos.z}, + velocity = {x=math.random(-.1,.1),y=math.random(1,2),z=math.random(-.1,.1)}, + acceleration = {x=0,y=-0.1,z=0}, + expirationtime = math.random(.5,1), + size = math.random(1,2), + collisiondetection = false, + texture = "tnt_smoke.png" + }) self.timer = self.timer + dtime self.blinktimer = self.blinktimer + dtime if self.blinktimer > 0.5 then